Shader builder fix for essl
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user