Upload Render Stuff (Textures, Lightning Shader, material.json)

This commit is contained in:
D4rkl1ght3r
2024-10-19 17:35:19 +02:00
parent c3e5c88bde
commit 7857a5571d
77 changed files with 81 additions and 13 deletions

View File

@@ -466,7 +466,10 @@ vec3 ApplyClusteredLights(const vec3 mapNormal, const vec3 eyeV, const vec3 F0,
void main(void)
{
float fogFactor = 0;
bool enableFog = false;
if (enableFog && fogMode > 0)
{
//Radial fog
@@ -542,14 +545,21 @@ void main(void)
vec3 mapNormal;
if (enableNormalMaps)
{
vec3 textureNormal = texture2D(normalMap, texCoordsProcessed).rgb;
textureNormal.xy = (textureNormal.rg * 2.0 - 1.0);
textureNormal.z = sqrt(1.0-dot(textureNormal.xy,textureNormal.xy));
mapNormal = normalize(textureNormal.xyz);
vec3 textureNormal = texture2D(normalMap, texCoordsProcessed).rgb;
textureNormal.g = 1.0 - textureNormal.g; // Invertiere den grünen Kanal für OpenGL
// Verstärkung der Normal Map Intensität
float intensity = 2.0; // Faktor zur Verstärkung, passe diesen Wert nach Bedarf an
textureNormal.xy = (textureNormal.rg * 2.0 - 1.0) * intensity;
// Rekalkuliere die Z-Komponente und normalisiere die Normal Map
textureNormal.z = sqrt(max(0.0, 1.0 - dot(textureNormal.xy, textureNormal.xy)));
mapNormal = normalize(textureNormal);
}
else
mapNormal = normal;
lightSum+=vec4(((matEmissiveColor.rgb))* firstTexture.rgb, alpha);
float metalness;

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -543,6 +543,7 @@
"ast_icecrystal.tga",
"ice asteroid.tga",
"ice_block.tga",
"ice_block.dds",
"ice_carbon.tga",
"order base_snow straight.tga021126124128",
"order base_snow in corner.tga021126124128"
@@ -591,6 +592,7 @@
"uranium_tile.tga",
"uranium_tile1.tga",
"mineable_beryl.tga"
"mineable.tga"
],
"Metalness": 0.0,
"Roughness": 0.9,
@@ -598,28 +600,84 @@
},
{
"TextureName": "STADTL2_256.TGA",
"Roughness": 0.639,
"Metalness": 0.479
"Roughness": 0.5,
"Metalness": 0.5
},
{
"TextureName": "STADTL3_256.TGA",
"Roughness": 0.529,
"Metalness": 0.55
"Roughness": 0.5,
"Metalness": 0.5
},
{
"TextureName": "STADTL1_256.tga",
"Roughness": 0.509,
"Roughness": 0.5,
"Metalness": 0.5
},
{
"TextureName": "m_panels.dds",
"Roughness": 0.459,
"Metalness": 0.1
"Roughness": 0.5,
"Metalness": 0.5
},
{
"TextureName": "dyson_skin05.dds",
"Roughness": 0.5,
"Metalness": 0.5,
"RoughnessTextureBias": 0.03
},
{
"TextureName": "ast_ice01_outside.dds",
"Roughness": 0.5,
"Metalness": 0.5,
"RoughnessTextureBias": 0.03
},
{
"TextureName": "Alien_organic000.dds",
"Roughness": 0.459
},
{
"TextureName": "bhvhf01_eng_in_lt_albedo.dds",
"Roughness": 0.5,
"Metalness": 0.5
},
{
"TextureName": "bhvhf01_eng_in_lt_lod1_albedo.dds",
"Roughness": 0.5,
"Metalness": 0.5
},
{
"TextureName": "bhvhf01_eng_in_rt_albedo.dds",
"Roughness": 0.5,
"Metalness": 0.5
},
{
"TextureName": "bhvhf01_eng_in_rt_lod1_albedo.dds",
"Roughness": 0.5,
"Metalness": 0.5
},
{
"TextureName": "bhvhf01_turb1_albedo.dds",
"Roughness": 0.5,
"Metalness": 0.5
},
{
"TextureName": "bhvhf01_turb1_lod1_albedo.dds",
"Roughness": 0.5,
"Metalness": 0.5
},
{
"TextureName": "bhvhf01_turb2_albedo.dds",
"Roughness": 0.5,
"Metalness": 0.5
},
{
"TextureName": "bhvhf01_turb2_lod1_albedo.dds",
"Roughness": 0.5,
"Metalness": 0.5
},
{
"TextureName": "m_hatch01.dds",
"Roughness": 0.459,
"Metalness": 0.1
"Roughness": 0.5,
"Metalness": 0.5
}
]
}