|
|
|
|
|
|
static const float rows = 32; |
|
|
|
static const float columns = 32; |
|
|
|
|
|
|
|
static const float4 col1 = float4(0.15, 0.15, 0.15, 1.0); |
|
|
|
static const float4 col2 = float4(0.3, 0.3, 0.3, 1.0); |
|
|
|
static const float4 col1 = float4(0.389297, 0.389297, 0.389297, 1.0); |
|
|
|
static const float4 col2 = float4(0.442601, 0.442601, 0.442601, 1.0); |
|
|
|
bool isEven = total % 2.0 == 0.0; |
|
|
|
return isEven ? col1 : col2; |
|
|
|
return lerp(col1, col2, step(fmod(total, 2.0), 0.5)); |
|
|
|
} |
|
|
|
ENDCG |
|
|
|
} |