mirror of
https://port.numenaute.org/aleajactaest/bazar_alea.git
synced 2024-11-25 16:46:19 +00:00
21 lines
No EOL
326 B
Text
21 lines
No EOL
326 B
Text
shader_type spatial;
|
|
|
|
void fragment() {
|
|
bool v = false;
|
|
bool w = false;
|
|
float b = 0.0;
|
|
float g = 0.2;
|
|
float r = 0.0;
|
|
if ( mod(UV.x,0.005) > 0.0025 ) {
|
|
v = true;
|
|
};
|
|
if ( mod(UV.y,0.005) > 0.0025 ) {
|
|
w = true;
|
|
};
|
|
if ( ( v && ! w ) || ( !v && w ) ) {
|
|
b = 0.0;
|
|
g = 0.0;
|
|
r = 0.2;
|
|
}
|
|
ALBEDO = vec3(r, g, b);
|
|
} |