passing poylNormal, tangent, bitangent to shader

This commit is contained in:
Anakin
2017-02-05 16:57:12 +01:00
parent cdf19911f6
commit 30f1a1e627
3 changed files with 60 additions and 24 deletions

View File

@@ -22,6 +22,10 @@ uniform struct Light {
float ambientCoefficient;
} light;
attribute vec3 a_polyNorm;
attribute vec3 a_polyTan;
attribute vec3 a_polyBiTan;
varying vec2 v_surfaceUV;
varying vec3 v_surfacePosition;
varying vec3 v_surfaceNormal;