Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

I found this in the new DramaticRevealBG transform, the usual operands failing when played in WebGL. Thought you may want to know.

ShaderError: ERROR: 0:79: '-' : wrong operand types - no operation '-' exists that takes a left-hand operand of type 'const int' and a right operand of type 'mediump float' (or there is no acceptable conversion)
ERROR: 0:79: '*' : wrong operand types - no operation '*' exists that takes a left-hand operand of type 'mediump 2-component vector of float' and a right operand of type 'const int' (or there is no acceptable conversion)
ERROR: 0:79: '-' : wrong operand types - no operation '-' exists that takes a left-hand operand of type 'const int' and a right operand of type 'mediump 2-component vector of float' (or there is no acceptable conversion)
ERROR: 0:79: '*' : wrong operand types - no operation '*' exists that takes a left-hand operand of type 'const int' and a right operand of type 'mediump float' (or there is no acceptable conversion)
ERROR: 0:79: '+' : wrong operand types - no operation '+' exists that takes a left-hand operand of type 'mediump 2-component vector of float' and a right operand of type 'const int' 

Weird.  I'm pretty sure I cleared those out weeks ago.  I'll take a look.

It’s actually in Regicide, though I have not found where. Funny because I did make Regicide work several months ago.

(+1)

I'm looking through it myself now and I'm not seeing it either.  The copy I have on Github doesn't look like it has any incidents of ints instead of floats either.  I assume you're working with the current version since I know you tried the new SimulatedLighting, so I'm not really sure where this is coming from.   Can you throw your MVNRSP file to me in Discord at some point?  

(+2)
4/29 Update:

For everyone else: Requiem and I were talking in the Discord and we caught an issue in the SimulatedLightingExpansion. I think this was the root of the issue, in that the functions that I use to grab screen coordinates to the shader wasn't present in the uploaded version.

The functions excluded should now be bundled with the SimulatedLightingExpansion file and should work properly.  The Regicide and DramaticReveal templates are otherwise fine and untouched.