#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
12
code/rend2/glsl/dlight_fp.glsl
Normal file
12
code/rend2/glsl/dlight_fp.glsl
Normal file
|
@ -0,0 +1,12 @@
|
|||
uniform sampler2D u_DiffuseMap;
|
||||
|
||||
varying vec2 var_Tex1;
|
||||
varying vec4 var_Color;
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 color = texture2D(u_DiffuseMap, var_Tex1);
|
||||
|
||||
gl_FragColor = color * var_Color;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue