Shader Builder / adapt logic & test to the new expression types

Also fixes a sneaky bug where the two last texture coordinates were inverted.
This commit is contained in:
Olivier Guyot
2019-10-25 09:54:14 +02:00
parent fc98704bcb
commit a39f751981
3 changed files with 41 additions and 36 deletions

View File

@@ -192,7 +192,7 @@ export function stringToGlsl(context, string) {
* will be read and modified during the parsing operation.
* @param {ParsingContext} context Parsing context
* @param {ExpressionValue} value Value
* @param {ValueTypes} [typeHint] Hint for the expected final type
* @param {ValueTypes|number} [typeHint] Hint for the expected final type (can be several types combined)
* @returns {string} GLSL-compatible output
*/
export function expressionToGlsl(context, value, typeHint) {