refactoring stuff
This commit is contained in:
parent
04befce27d
commit
fa7bf893e7
54 changed files with 200 additions and 256 deletions
|
|
@ -1,6 +1,6 @@
|
|||
#version 450
|
||||
|
||||
const int MAX_TEXTURES = 512;
|
||||
const int MAX_TEXTURES = 128;
|
||||
|
||||
layout(location = 0) in vec4 inPos;
|
||||
layout(location = 1) in vec3 inNormal;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#version 450
|
||||
|
||||
const int MAX_TEXTURES = 512;
|
||||
const int MAX_TEXTURES = 128;
|
||||
|
||||
|
||||
layout(location = 0) in vec4 inPos;
|
||||
|
|
|
|||
Binary file not shown.
|
|
@ -1,6 +1,6 @@
|
|||
#version 450
|
||||
|
||||
const int MAX_TEXTURES = 512;
|
||||
const int MAX_TEXTURES = 128;
|
||||
|
||||
|
||||
layout(location = 0) in vec4 inPos;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#version 450
|
||||
|
||||
const int MAX_TEXTURES = 512;
|
||||
const int MAX_TEXTURES = 128;
|
||||
|
||||
layout(location = 0) in vec4 inPos;
|
||||
layout(location = 1) in vec3 inNormal;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#version 450
|
||||
|
||||
const int MAX_TEXTURES = 512;
|
||||
const int MAX_TEXTURES = 128;
|
||||
|
||||
layout(location = 0) in vec4 inPos;
|
||||
layout(location = 1) in vec3 inNormal;
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#version 450
|
||||
|
||||
const int MAX_TEXTURES = 512;
|
||||
const int MAX_TEXTURES = 128;
|
||||
|
||||
layout(location = 0) in vec4 inPos;
|
||||
layout(location = 1) in vec3 inNormal;
|
||||
|
|
|
|||
|
|
@ -52,7 +52,7 @@ void main() {
|
|||
float NoV = clamp(dot(worldNormal, viewDirToCamera), 0.0, 1.0);
|
||||
float fresnel = pow(1.0 - NoV, 5.0);
|
||||
|
||||
float materialReflection = reflectiveness + refractiveness - 1;
|
||||
float materialReflection = reflectiveness + (refractiveness - 1.05);
|
||||
materialReflection *= mix(0.75, 1.0, metallic);
|
||||
materialReflection *= smoothstep(0.7, 0.05, roughness);
|
||||
materialReflection *= mix(0.45, 1.0, fresnel);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
#version 450
|
||||
|
||||
// Keep in sync manually with Java code
|
||||
const int MAX_TEXTURES = 512;
|
||||
const int MAX_TEXTURES = 128;
|
||||
|
||||
layout (location = 0) in vec2 inTextCoords;
|
||||
layout (location = 1) in flat uint inMaterialIdx;
|
||||
|
|
|
|||
|
|
@ -7,5 +7,5 @@ layout(location = 1) out vec4 outColor;
|
|||
layout(set = 2, binding = 0) uniform samplerCube skyboxSampler;
|
||||
|
||||
void main() {
|
||||
outColor = texture(skyboxSampler, outTexCoords);// * vec4(3,1.0,0.65,1);
|
||||
outColor = texture(skyboxSampler, outTexCoords); //* vec4(0.0,0.05,0.1,1);
|
||||
}
|
||||
|
|
@ -11,7 +11,7 @@
|
|||
"W": 1.0
|
||||
},
|
||||
"Roughness": 0.0,
|
||||
"Metallic": 1.0,
|
||||
"Metallic": 0.0,
|
||||
"EmissiveTexture": "",
|
||||
"EmissiveColour": {
|
||||
"X": 0.0,
|
||||
|
|
@ -30,7 +30,7 @@
|
|||
"W": 1.0
|
||||
},
|
||||
"Refractiveness": 1.0,
|
||||
"Reflectiveness": 1.0
|
||||
"Reflectiveness": 0.0
|
||||
},
|
||||
{
|
||||
"ID": "Cube-mat-1",
|
||||
|
|
@ -44,7 +44,7 @@
|
|||
"W": 1.0
|
||||
},
|
||||
"Roughness": 0.0,
|
||||
"Metallic": 1.0,
|
||||
"Metallic": 0.0,
|
||||
"EmissiveTexture": "",
|
||||
"EmissiveColour": {
|
||||
"X": 0.0,
|
||||
|
|
@ -63,7 +63,7 @@
|
|||
"W": 1.0
|
||||
},
|
||||
"Refractiveness": 1.0,
|
||||
"Reflectiveness": 1.0
|
||||
"Reflectiveness": 0.0
|
||||
},
|
||||
{
|
||||
"ID": "Cube-mat-2",
|
||||
|
|
@ -77,7 +77,7 @@
|
|||
"W": 1.0
|
||||
},
|
||||
"Roughness": 0.0,
|
||||
"Metallic": 1.0,
|
||||
"Metallic": 0.0,
|
||||
"EmissiveTexture": "",
|
||||
"EmissiveColour": {
|
||||
"X": 0.0,
|
||||
|
|
@ -88,7 +88,7 @@
|
|||
"TranslucencyTexture": "",
|
||||
"Translucency": 0.0,
|
||||
"OpacityTexture": "",
|
||||
"Opacity": 1.0,
|
||||
"Opacity": 0.0,
|
||||
"ColorTransparency": {
|
||||
"X": 0.0,
|
||||
"Y": 0.0,
|
||||
|
|
@ -96,6 +96,6 @@
|
|||
"W": 1.0
|
||||
},
|
||||
"Refractiveness": 1.0,
|
||||
"Reflectiveness": 1.0
|
||||
"Reflectiveness": 0.0
|
||||
}
|
||||
]
|
||||
Loading…
Add table
Add a link
Reference in a new issue