renderer -> renderergl1, rend2 -> renderergl2
This commit is contained in:
parent
bff574e04e
commit
f6fb9eb602
120 changed files with 1277 additions and 1294 deletions
17
code/renderergl2/glsl/pshadow_vp.glsl
Normal file
17
code/renderergl2/glsl/pshadow_vp.glsl
Normal file
|
@ -0,0 +1,17 @@
|
|||
attribute vec4 attr_Position;
|
||||
attribute vec3 attr_Normal;
|
||||
|
||||
uniform mat4 u_ModelViewProjectionMatrix;
|
||||
varying vec3 var_Position;
|
||||
varying vec3 var_Normal;
|
||||
|
||||
|
||||
void main()
|
||||
{
|
||||
vec4 position = attr_Position;
|
||||
|
||||
gl_Position = u_ModelViewProjectionMatrix * position;
|
||||
|
||||
var_Position = position.xyz;
|
||||
var_Normal = attr_Normal;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue