Add debug shadow cascades highlighter
This commit is contained in:
parent
deba82adee
commit
eb64c00a02
1 changed files with 4 additions and 0 deletions
|
|
@ -442,6 +442,10 @@ void main()
|
|||
|
||||
if (tc.x >= 0.0 && tc.x <= 1.0 && tc.y >= 0.0 && tc.y <= 1.0 && tc.z >= 0.0)
|
||||
{
|
||||
// int l = cascade + 1;
|
||||
// color = vec3(float(l & 1), float(l & 2) / 2.0, float(l & 4) / 4.0);
|
||||
// break;
|
||||
|
||||
color *= texture(u_shadow, vec4(tc.x, tc.y, float(cascade), tc.z));
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue