diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/render/materialsystem/prototypes/default.json | 135 |
1 files changed, 135 insertions, 0 deletions
diff --git a/src/render/materialsystem/prototypes/default.json b/src/render/materialsystem/prototypes/default.json index b868889d6..429c435f4 100644 --- a/src/render/materialsystem/prototypes/default.json +++ b/src/render/materialsystem/prototypes/default.json @@ -410,5 +410,140 @@ "headerSnippets": [ "#pragma include :/shaders/gl3/metalrough.inc.frag" ] } ] + }, + "join2": { + "inputs": [ + "first", + "second" + ], + "outputs": [ + "output" + ], + "parameters": { + "type": { + "type": "QShaderLanguage::VariableType", + "value": "QShaderLanguage::Vec2" + } + }, + "rules": [ + { + "format": { + "api": "OpenGLES", + "major": 2, + "minor": 0 + }, + "substitution": "highp $type $output = $type($first, $second);" + }, + { + "format": { + "api": "OpenGLCoreProfile", + "major": 3, + "minor": 0 + }, + "substitution": "$type $output = $type($first, $second);" + } + ] + }, + "join3": { + "inputs": [ + "first", + "second", + "third" + ], + "outputs": [ + "output" + ], + "parameters": { + "type": { + "type": "QShaderLanguage::VariableType", + "value": "QShaderLanguage::Vec3" + } + }, + "rules": [ + { + "format": { + "api": "OpenGLES", + "major": 2, + "minor": 0 + }, + "substitution": "highp $type $output = $type($first, $second, $third);" + }, + { + "format": { + "api": "OpenGLCoreProfile", + "major": 3, + "minor": 0 + }, + "substitution": "$type $output = $type($first, $second, $third);" + } + ] + }, + "join4": { + "inputs": [ + "first", + "second", + "third", + "fourth" + ], + "outputs": [ + "output" + ], + "parameters": { + "type": { + "type": "QShaderLanguage::VariableType", + "value": "QShaderLanguage::Vec4" + } + }, + "rules": [ + { + "format": { + "api": "OpenGLES", + "major": 2, + "minor": 0 + }, + "substitution": "highp $type $output = $type($first, $second, $third, $fourth);" + }, + { + "format": { + "api": "OpenGLCoreProfile", + "major": 3, + "minor": 0 + }, + "substitution": "$type $output = $type($first, $second, $third, $fourth);" + } + ] + }, + "cast": { + "inputs": [ + "input" + ], + "outputs": [ + "output" + ], + "parameters": { + "type": { + "type": "QShaderLanguage::VariableType", + "value": "QShaderLanguage::Vec3" + } + }, + "rules": [ + { + "format": { + "api": "OpenGLES", + "major": 2, + "minor": 0 + }, + "substitution": "highp $type $output = $type($input);" + }, + { + "format": { + "api": "OpenGLCoreProfile", + "major": 3, + "minor": 0 + }, + "substitution": "$type $output = $type($input);" + } + ] } } + |