Files
GhostEngine/Ghost.Graphics/test.gshader
Misaki 0ec318a9ab Add sampler support and refactor resource handling
Enhanced shader and resource systems with `Sampler` support, including updates to `ShaderPropertyType`, HLSL code, and resource management. Refactored `Result` structs for better type safety and added new enums for texture and comparison settings. Improved `MeshRenderPass` to dynamically load textures and samplers. Updated SDL compiler and token lexicon for `Sampler` handling. Embedded debug info in project files and streamlined resource state tracking.
2025-11-29 18:27:47 +09:00

28 lines
674 B
GLSL

shader "MyShader/Standard"
{
properties
{
float4 color = float4(1, 1, 1, 1);
tex2d texture1 = tex2d(black);
tex2d texture2 = tex2d(white);
tex2d texture3 = tex2d(grey);
tex2d texture4 = tex2d(normal);
sampler tex_sampler;
}
pass "Forward"
{
pipeline
{
ztest = disable;
zwrite = off;
cull = off;
blend = opaque;
color_mask = 15;
}
ms("F:/csharp/GhostEngine/Ghost.Graphics/RenderPasses/ShaderCode.hlsl", "MSMain");
ps("F:/csharp/GhostEngine/Ghost.Graphics/RenderPasses/ShaderCode.hlsl", "PSMain");
}
}