SL-16489 Fix for rigged attachment glow showing up near origin.
parent
199775b7ac
commit
20345827eb
|
|
@ -40,15 +40,26 @@ vec3 atmosAffectDirectionalLight(float lightIntensity);
|
|||
VARYING vec4 vertex_color;
|
||||
VARYING vec2 vary_texcoord0;
|
||||
|
||||
#ifdef HAS_SKIN
|
||||
mat4 getObjectSkinnedTransform();
|
||||
uniform mat4 projection_matrix;
|
||||
#endif
|
||||
|
||||
void main()
|
||||
{
|
||||
//transform vertex
|
||||
vec4 vert = vec4(position.xyz, 1.0);
|
||||
vec4 pos = (modelview_matrix * vert);
|
||||
passTextureIndex();
|
||||
|
||||
gl_Position = modelview_projection_matrix*vec4(position.xyz, 1.0);
|
||||
#ifdef HAS_SKIN
|
||||
mat4 mat = getObjectSkinnedTransform();
|
||||
mat = modelview_matrix * mat;
|
||||
|
||||
vec4 pos = mat * vec4(position.xyz, 1.0);
|
||||
gl_Position = projection_matrix * pos;
|
||||
#else
|
||||
gl_Position = modelview_projection_matrix * vec4(position.xyz, 1.0);
|
||||
vec4 pos = (modelview_matrix * vec4(position.xyz, 1.0));
|
||||
#endif
|
||||
|
||||
vary_texcoord0 = (texture_matrix0 * vec4(texcoord0,0,1)).xy;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue