Workaround MoltenVK shader conversion error
This commit is contained in:
parent
8e3d9a23aa
commit
9b4e07f866
|
@ -114,9 +114,9 @@ invariant gl_Position;
|
||||||
|
|
||||||
#GLOBALS
|
#GLOBALS
|
||||||
|
|
||||||
void main() {
|
#define scene_data scene_data_block.data
|
||||||
SceneData scene_data = scene_data_block.data;
|
|
||||||
|
|
||||||
|
void main() {
|
||||||
vec4 instance_custom = vec4(0.0);
|
vec4 instance_custom = vec4(0.0);
|
||||||
#if defined(COLOR_USED)
|
#if defined(COLOR_USED)
|
||||||
color_interp = color_attrib;
|
color_interp = color_attrib;
|
||||||
|
@ -576,13 +576,14 @@ vec4 fog_process(vec3 vertex) {
|
||||||
|
|
||||||
#endif //!MODE_RENDER DEPTH
|
#endif //!MODE_RENDER DEPTH
|
||||||
|
|
||||||
|
#define scene_data scene_data_block.data
|
||||||
|
|
||||||
void main() {
|
void main() {
|
||||||
#ifdef MODE_DUAL_PARABOLOID
|
#ifdef MODE_DUAL_PARABOLOID
|
||||||
|
|
||||||
if (dp_clip > 0.0)
|
if (dp_clip > 0.0)
|
||||||
discard;
|
discard;
|
||||||
#endif
|
#endif
|
||||||
SceneData scene_data = scene_data_block.data;
|
|
||||||
|
|
||||||
//lay out everything, whatever is unused is optimized away anyway
|
//lay out everything, whatever is unused is optimized away anyway
|
||||||
vec3 vertex = vertex_interp;
|
vec3 vertex = vertex_interp;
|
||||||
|
|
Loading…
Reference in New Issue