Updated almost all stuff

This commit is contained in:
2025-06-14 16:20:47 +03:00
parent 756fb3bdd0
commit a1f1e09af6
152 changed files with 53441 additions and 26 deletions

View File

@@ -0,0 +1,11 @@
OGRE_NATIVE_GLSL_VERSION_DIRECTIVE
#include <OgreUnifiedShader.h>
OGRE_UNIFORMS(uniform vec4 ambient;)
OGRE_UNIFORMS(uniform vec4 diffuse;)
MAIN_PARAMETERS
MAIN_DECLARATION
{
gl_FragColor = ambient * diffuse;
}

View File

@@ -0,0 +1,71 @@
material Skybox/Debug1
{
technique
{
pass
{
lighting off
depth_write off
ambient 1.0 0.0 0.0 1.0
diffuse 1.0 0.0 0.0 1.0
vertex_program_ref debug_vp
{
}
fragment_program_ref debug_fp
{
}
}
}
}
material Debug/Red
{
technique
{
pass
{
lighting off
depth_check on
depth_write on
depth_func always_pass
ambient 1.0 0.0 0.0 1.0
diffuse vertexcolour
specular 0.0 0.0 0.0 1.0
cull_software none
cull_hardware none
/*
rtshader_system
{
lighting_stage metal_roughness
}
*/
}
}
}
material Debug/Red2
{
technique
{
pass
{
lighting off
depth_check on
depth_write on
depth_func always_pass
ambient 1.0 0.0 0.0 1.0
diffuse vertexcolour
specular 0.0 0.0 0.0 1.0
cull_software none
cull_hardware none
rtshader_system
{
lighting_stage metal_roughness
}
}
}
}

View File

@@ -0,0 +1,19 @@
fragment_program debug_fp glsl glsles glslang hlsl
{
source debug.frag
default_params
{
param_named_auto ambient surface_ambient_colour
param_named_auto diffuse surface_diffuse_colour
}
}
vertex_program debug_vp glsl glsles glslang hlsl
{
source debug.vert
default_params
{
param_named worldViewProj worldviewproj_matrix
}
}

View File

@@ -0,0 +1,25 @@
OGRE_NATIVE_GLSL_VERSION_DIRECTIVE
#include <OgreUnifiedShader.h>
OGRE_UNIFORMS(
uniform mat4 worldViewProj;
)
MAIN_PARAMETERS
IN(vec4 vertex, POSITION)
IN(vec3 normal, NORMAL)
IN(vec3 tangent, TANGENT)
IN(vec3 uv0, TEXCOORD0)
// uniform mat4 worldViewProj;
// attribute vec4 vertex;
// attribute vec3 normal;
// attribute vec4 tangent;
// attribute vec2 uv0;
MAIN_DECLARATION
// void main()
{
// gl_Position = mul(worldViewProj, position);
gl_Position = worldViewProj * vertex;
}