Properly take into consideration that VERTEX must be written to in opaque pre pass, does some speed up to scenes using triplanar.

This commit is contained in:
Juan Linietsky 2017-12-01 08:42:57 -03:00
parent d81c5004b1
commit 0243803117
6 changed files with 54 additions and 7 deletions

View file

@ -263,6 +263,8 @@ uniform highp sampler2D skeleton_texture; //texunit:-1
out highp vec4 position_interp;
invariant gl_Position;
void main() {
highp vec4 vertex = vertex_attrib; // vec4(vertex_attrib.xyz * data_attrib.x,1.0);