Skip to content
Snippets Groups Projects
Commit d98e2340 authored by Rye Mutt's avatar Rye Mutt :bread:
Browse files

Small shader opt and cleanup

parent 13a5cb22
No related branches found
No related tags found
No related merge requests found
...@@ -24,9 +24,6 @@ ...@@ -24,9 +24,6 @@
ATTRIBUTE vec4 weight4; ATTRIBUTE vec4 weight4;
/* BENTO JOINT COUNT LIMITS
* Note that the value in the next line also needs to be updated to value-1 several places below.
*/
uniform mat3x4 matrixPalette[MAX_JOINTS_PER_MESH_OBJECT]; uniform mat3x4 matrixPalette[MAX_JOINTS_PER_MESH_OBJECT];
mat4 getObjectSkinnedTransform() mat4 getObjectSkinnedTransform()
......
...@@ -526,14 +526,15 @@ void main() ...@@ -526,14 +526,15 @@ void main()
float final_alpha = diff.a; float final_alpha = diff.a;
#endif #endif
#ifdef FOR_IMPOSTOR #ifdef FOR_IMPOSTOR
vec4 color = vec4(diff.rgb,final_alpha);
// Insure we don't pollute depth with invis pixels in impostor rendering // Insure we don't pollute depth with invis pixels in impostor rendering
// //
if (final_alpha < minimum_alpha) if (final_alpha < minimum_alpha)
{ {
discard; discard;
} }
vec4 color = vec4(diff.rgb,final_alpha);
#else #else
vec4 gamma_diff = diff; vec4 gamma_diff = diff;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment