mirror of
https://github.com/Abdess/retroarch_system.git
synced 2026-10-10 21:43:23 -05:00
26 lines
671 B
V Shell
26 lines
671 B
V Shell
uniform mat4 uMatrix;
|
|
uniform mat3 uNormalMatrix;
|
|
uniform vec2 uTexSize;
|
|
uniform float uAmbIntensity;
|
|
attribute vec4 aPosition;
|
|
attribute vec3 aNormal;
|
|
attribute vec2 aColorData;
|
|
attribute vec3 aMaterial;
|
|
varying vec2 vTexture;
|
|
varying vec3 vNormal;
|
|
varying float vIsTransparency;
|
|
varying float vIsReflect;
|
|
varying float vAmbIntensity;
|
|
|
|
void main() {
|
|
gl_Position = uMatrix * aPosition;
|
|
vNormal = uNormalMatrix * aNormal;
|
|
vIsTransparency = aMaterial[2];
|
|
vIsReflect = aMaterial[1];
|
|
vAmbIntensity = aMaterial[0] > 0.5 ? uAmbIntensity : -1.0;
|
|
#ifdef FILTER
|
|
vTexture = (aColorData + 0.5) / uTexSize;
|
|
#else
|
|
vTexture = aColorData / uTexSize;
|
|
#endif
|
|
} |