#5808 - Include and use .glsl in source (rend2)
This commit is contained in:
parent
6b811ada7a
commit
edb414b34a
30 changed files with 2058 additions and 999 deletions
9
code/rend2/glsl/fogpass_fp.glsl
Normal file
9
code/rend2/glsl/fogpass_fp.glsl
Normal file
|
@ -0,0 +1,9 @@
|
|||
uniform vec4 u_Color;
|
||||
|
||||
varying float var_Scale;
|
||||
|
||||
void main()
|
||||
{
|
||||
gl_FragColor = u_Color;
|
||||
gl_FragColor.a *= sqrt(clamp(var_Scale, 0.0, 1.0));
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue