Skip to content

Commit

Permalink
Fix some texture issues
Browse files Browse the repository at this point in the history
  • Loading branch information
devendrn committed Jun 29, 2024
1 parent ab5ede7 commit efc0f0d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/materials/Actor/fragment.sc
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ uniform vec4 HudOpacity;
uniform vec4 UVAnimation;
uniform mat4 Bones[8];

SAMPLER2D(s_MatTexture, 0);
SAMPLER2D(s_MatTexture1, 1);
SAMPLER2D_AUTOREG(s_MatTexture);
SAMPLER2D_AUTOREG(s_MatTexture1);

void main() {
#if DEPTH_ONLY
Expand Down
5 changes: 2 additions & 3 deletions src/materials/EndSky/fragment.sc
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,12 @@ $input v_texcoord0, v_posTime
#ifndef INSTANCING
#include <newb/main.sh>

SAMPLER2D(s_MatTexture, 0);
SAMPLER2D_AUTOREG(s_SkyTexture);
#endif

void main() {
// Instancing is off normally?
#ifndef INSTANCING
vec4 diffuse = texture2D(s_MatTexture, v_texcoord0);
vec4 diffuse = texture2D(s_SkyTexture, v_texcoord0);

// end sky gradient
vec3 color = renderEndSky(getEndHorizonCol(), getEndZenithCol(), normalize(v_posTime.xyz), v_posTime.w);
Expand Down

0 comments on commit efc0f0d

Please sign in to comment.