mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-04-06 08:03:12 +02:00
7 lines
277 B
GLSL
7 lines
277 B
GLSL
vec3 getSkyboxColor() {
|
|
vec3 normal = normalize(_normal);
|
|
float checkSize = 0.1;
|
|
vec3 edges = round(mod(normal, vec3(checkSize)) / checkSize);
|
|
float checkerboard = mod(edges.x + edges.y + edges.z, 2.0);
|
|
return mix(vec3(1, 0, 1), vec3(0.0), checkerboard);
|
|
}
|