perform bias matrix operation in shader instead of on cpu, for renderableplanetprojection

This commit is contained in:
Emil Axelsson
2016-08-30 13:36:57 +02:00
parent 3d000a5bb1
commit 86a0661aef

View File

@@ -71,6 +71,8 @@ void main() {
projected.x /= projected.w;
projected.y /= projected.w;
projected = projected * 0.5 + vec4(0.5);
vec3 normal = normalize((ModelTransform*vec4(vertex.xyz,0)).xyz);
vec3 v_b = normalize(boresight);