summaryrefslogtreecommitdiffstats
path: root/src/render/materialsystem/prototypes/default.json
diff options
context:
space:
mode:
Diffstat (limited to 'src/render/materialsystem/prototypes/default.json')
-rw-r--r--src/render/materialsystem/prototypes/default.json27
1 files changed, 27 insertions, 0 deletions
diff --git a/src/render/materialsystem/prototypes/default.json b/src/render/materialsystem/prototypes/default.json
index 535f144d7..63c39164c 100644
--- a/src/render/materialsystem/prototypes/default.json
+++ b/src/render/materialsystem/prototypes/default.json
@@ -87,6 +87,15 @@
},
{
"format": {
+ "api": "OpenGLES",
+ "major": 3,
+ "minor": 0
+ },
+ "substitution": "highp vec4 $color = texture($name, $coord);",
+ "headerSnippets": [ "uniform sampler2D $name;" ]
+ },
+ {
+ "format": {
"api": "OpenGLCoreProfile",
"major": 3,
"minor": 0
@@ -111,6 +120,15 @@
},
{
"format": {
+ "api": "OpenGLES",
+ "major": 3,
+ "minor": 0
+ },
+ "substitution": "fragColor = $fragColor;",
+ "headerSnippets": [ "out highp vec4 fragColor;" ]
+ },
+ {
+ "format": {
"api": "OpenGLCoreProfile",
"major": 3,
"minor": 0
@@ -445,6 +463,15 @@
"rules": [
{
"format": {
+ "api": "OpenGLES",
+ "major": 3,
+ "minor": 0
+ },
+ "substitution": "highp vec4 $outputColor = metalRoughFunction($baseColor, $metalness, $roughness, $ambientOcclusion, $worldPosition, $worldView, $worldNormal);",
+ "headerSnippets": [ "#pragma include :/shaders/es3/metalrough.inc.frag" ]
+ },
+ {
+ "format": {
"api": "OpenGLCoreProfile",
"major": 3,
"minor": 1