Shader builder fix for essl

This commit is contained in:
luboslenco
2021-02-10 12:05:45 +01:00
parent eed9257ae4
commit 68ddd70b17
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -14,7 +14,7 @@ class MakeBrush {
if (Context.tool == ToolParticle) return;
var decal = Context.tool == ToolDecal || Context.tool == ToolText;
if (decal) frag.write('if (decalMaskLocal.z > 0) {');
if (decal) frag.write('if (decalMaskLocal.z > 0.0) {');
if (Config.raw.brush_3d) {
frag.write('vec4 inpLocal = inp;'); // TODO: spirv workaround
+1 -1
View File
@@ -58,7 +58,7 @@ class MakeMeshPreview {
var brushScale = (Context.brushScale * Context.brushNodesScale) + "";
vert.add_out('vec2 texCoord');
vert.write_attrib('texCoord = tex * ${brushScale};');
vert.write_attrib('texCoord = tex * float(${brushScale});');
if (MakeMaterial.heightUsed) {
frag.bposition = true;