Skip to content

Commit b33d6e0

Browse files
committed
Fix #774
1 parent 76e522b commit b33d6e0

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

Build/svencoop/renderer/shader/common.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,15 +105,15 @@
105105
#define STENCIL_MASK_ALL 0xFF
106106
#define STENCIL_MASK_NONE 0
107107

108-
//Main view
108+
//Main view
109109
#define STENCIL_MASK_NO_FOG 0x1
110110
#define STENCIL_MASK_NO_LIGHTING 0x2
111111
#define STENCIL_MASK_NO_BLOOM 0x4
112112
#define STENCIL_MASK_NO_GLOW_BLUR 0x8
113113
#define STENCIL_MASK_HAS_FLATSHADE 0x10
114114
#define STENCIL_MASK_HAS_DECAL 0x20
115-
#define STENCIL_MASK_NO_GLOW_COLOR 0x20
116115
#define STENCIL_MASK_HAS_OUTLINE 0x40
116+
#define STENCIL_MASK_NO_GLOW_COLOR 0x40
117117

118118
//Studio view
119119
#define STENCIL_MASK_HAS_SHADOW 0x1

Build/svencoop/renderer/shader/water_shader.vert.glsl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ const float turbsin[] = {
5858
void main()
5959
{
6060
vec3 vertpos = in_vertex;
61-
vec4 worldpos4 = EntityUBO.entityMatrix * vec4(vertpos, 1.0);
61+
vec4 worldpos4 = EntityUBO.r_entityMatrix * vec4(vertpos, 1.0);
6262

6363
#if defined(LEGACY_ENABLED)
6464

@@ -86,7 +86,7 @@ void main()
8686

8787
vec4 normal4 = vec4(in_normal, 0.0);
8888

89-
v_normal = normalize((EntityUBO.entityMatrix * normal4).xyz);
89+
v_normal = normalize((EntityUBO.r_entityMatrix * normal4).xyz);
9090

9191
gl_Position = GetCameraProjMatrix(0) * GetCameraWorldMatrix(0) * worldpos4;
9292

Build/svencoop/renderer/shader/wsurf_shader.vert.glsl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ void main(void)
149149

150150
#if 1//Use smooth normal for vertex scaling
151151
vec4 smoothnormal4 = vec4(in_smoothnormal.xyz, 0.0);
152-
smoothnormal3 = normalize((EntityUBO.r_entityMatrix * smoothnormal4).xyz);
152+
vec3 smoothnormal3 = normalize((EntityUBO.r_entityMatrix * smoothnormal4).xyz);
153153

154154
worldpos4.xyz += smoothnormal3.xyz * EntityUBO.r_scale;
155155
#endif

Plugins/Renderer/gl_common.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,8 +169,8 @@ class CIndirectDrawAttrib
169169
#define STENCIL_MASK_NO_GLOW_BLUR 0x8
170170
#define STENCIL_MASK_HAS_FLATSHADE 0x10
171171
#define STENCIL_MASK_HAS_DECAL 0x20
172-
#define STENCIL_MASK_NO_GLOW_COLOR 0x20
173172
#define STENCIL_MASK_HAS_OUTLINE 0x40
173+
#define STENCIL_MASK_NO_GLOW_COLOR 0x40
174174

175175
//Studio view
176176
#define STENCIL_MASK_HAS_SHADOW 0x1

Plugins/Renderer/gl_rmain.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4288,7 +4288,7 @@ void R_SetupGLForViewModel(void)
42884288

42894289
void R_SetupGL(void)
42904290
{
4291-
GL_BeginDebugGroup("R_SetupGL");
4291+
// GL_BeginDebugGroup("R_SetupGL");
42924292

42934293
auto CurrentFBO = GL_GetCurrentSceneFBO();
42944294

@@ -4454,7 +4454,7 @@ void R_SetupGL(void)
44544454
InvertMatrix(gWorldToScreen, gScreenToWorld);
44554455
}
44564456

4457-
GL_EndDebugGroup();
4457+
// GL_EndDebugGroup();
44584458
}
44594459

44604460
void R_CheckVariables(void)

0 commit comments

Comments
 (0)