diff options
Diffstat (limited to 'ProjectBrusselAssets')
-rw-r--r-- | ProjectBrusselAssets/.stationary/Shaders/Default.glsl | 38 | ||||
-rw-r--r-- | ProjectBrusselAssets/Ires/M_BasicWall.json | 12 | ||||
-rw-r--r-- | ProjectBrusselAssets/Ires/M_Default.json | 12 | ||||
-rw-r--r-- | ProjectBrusselAssets/Ires/M_Player.json | 12 | ||||
-rw-r--r-- | ProjectBrusselAssets/Ires/SS_Player.json | 1 | ||||
-rw-r--r-- | ProjectBrusselAssets/Ires/S_Default.json | 70 |
6 files changed, 145 insertions, 0 deletions
diff --git a/ProjectBrusselAssets/.stationary/Shaders/Default.glsl b/ProjectBrusselAssets/.stationary/Shaders/Default.glsl new file mode 100644 index 0000000..1d93471 --- /dev/null +++ b/ProjectBrusselAssets/.stationary/Shaders/Default.glsl @@ -0,0 +1,38 @@ +#type vertex +#version 330 core + +layout(location = 0) in vec3 pos; +layout(location = 1) in vec4 color; +layout(location = 2) in vec2 texcoord; + +out Vertex2Fragmnet { + vec4 color; + vec2 texcoord; +} v2f; + +// Autofill uniforms +uniform mat4 transformation; + +void main() { + gl_Position = transformation * vec4(pos, 1.0); + v2f.color = color; + v2f.texcoord = texcoord; +} + +#type fragment +#version 330 core + +in Vertex2Fragmnet { + vec4 color; + vec2 texcoord; +} v2f; + +out vec4 fragColor; + +// Material uniforms +uniform sampler2D textureAtlas; +uniform vec4 taint; + +void main() { + fragColor = texture(textureAtlas, v2f.texcoord) * v2f.color * taint; +} diff --git a/ProjectBrusselAssets/Ires/M_BasicWall.json b/ProjectBrusselAssets/Ires/M_BasicWall.json new file mode 100644 index 0000000..a0e2395 --- /dev/null +++ b/ProjectBrusselAssets/Ires/M_BasicWall.json @@ -0,0 +1,12 @@ +{ + "Type": "IresMaterial", + "Uid": [2568492772925683063, 3783268081215530432], + "Value": { + "Shader": [10239352483866045204, 2308094336962663863], + "Fields": [{ + "Name": "taint", + "Type": "Vector", + "Value": [0.03868706524372101, 0.6346951127052307, 0.7892156839370728, 0.0] + }] + } +}
\ No newline at end of file diff --git a/ProjectBrusselAssets/Ires/M_Default.json b/ProjectBrusselAssets/Ires/M_Default.json new file mode 100644 index 0000000..0422e94 --- /dev/null +++ b/ProjectBrusselAssets/Ires/M_Default.json @@ -0,0 +1,12 @@ +{ + "Type": "IresMaterial", + "Uid": [1173927873865027620, 6990602806197486151], + "Value": { + "Shader": [10239352483866045204, 2308094336962663863], + "Fields": [{ + "Name": "taint", + "Type": "Vector", + "Value": [1.0, 1.0, 1.0, 0.0] + }] + } +}
\ No newline at end of file diff --git a/ProjectBrusselAssets/Ires/M_Player.json b/ProjectBrusselAssets/Ires/M_Player.json new file mode 100644 index 0000000..b2494dc --- /dev/null +++ b/ProjectBrusselAssets/Ires/M_Player.json @@ -0,0 +1,12 @@ +{ + "Type": "IresMaterial", + "Uid": [8784140338803637141, 14601353797962284625], + "Value": { + "Shader": [10239352483866045204, 2308094336962663863], + "Fields": [{ + "Name": "taint", + "Type": "Vector", + "Value": [1.0, 1.0, 1.0, 0.0] + }] + } +}
\ No newline at end of file diff --git a/ProjectBrusselAssets/Ires/SS_Player.json b/ProjectBrusselAssets/Ires/SS_Player.json new file mode 100644 index 0000000..b413317 --- /dev/null +++ b/ProjectBrusselAssets/Ires/SS_Player.json @@ -0,0 +1 @@ +{"Type":"IresSpritesheet","Uid":[15827420425478528881,8130926596581515031],"Value":{"SpriteSheet":"S_Player.png","WSplit":6,"HSplit":4}}
\ No newline at end of file diff --git a/ProjectBrusselAssets/Ires/S_Default.json b/ProjectBrusselAssets/Ires/S_Default.json new file mode 100644 index 0000000..0bfcb1b --- /dev/null +++ b/ProjectBrusselAssets/Ires/S_Default.json @@ -0,0 +1,70 @@ +{ + "Type": "IresShader", + "Uid": [10239352483866045204, 2308094336962663863], + "Value": { + "SourceFile": ".stationary/Shaders/Default.glsl", + "Inputs": [ + { + "Semantic": "VES_Position", + "Name": "pos", + "ScalarType": "float", + "Width": 1, + "Height": 3, + "OpenGLLocation": 0 + }, + { + "Semantic": "VES_TexCoords1", + "Name": "texcoord", + "ScalarType": "float", + "Width": 1, + "Height": 2, + "OpenGLLocation": 1 + }, + { + "Semantic": "VES_Color1", + "Name": "color", + "ScalarType": "float", + "Width": 1, + "Height": 4, + "OpenGLLocation": 2 + } + ], + "Outputs": [ + { + "Name": "fragColor", + "ScalarType": "float", + "Width": 1, + "Height": 4, + "OpenGLLocation": 0 + } + ], + "Uniforms": [ + { + "Type": "Math", + "AutoFill": true, + "Value": { + "Name": "transformation", + "ScalarType": "float", + "Width": 4, + "Height": 4 + } + }, + { + "Type": "Math", + "Value": { + "Name": "taint", + "Semantic": "VES_Color1", + "ScalarType": "float", + "Width": 1, + "Height": 4 + } + }, + { + "Type": "Sampler", + "Value": { + "Name": "textureAtlas" + } + } + ] + } +}
\ No newline at end of file |