Files
GhostEngine/Ghost.Graphics/test.gshader
Misaki bd97d233cb Refactor and optimize rendering pipeline
- Added `<IsTrimmable>` property in project files for trimming.
- Replaced bindless texture types with non-bindless equivalents.
- Refactored `ShaderDescriptor` and `ShaderPass` for better modularity.
- Introduced `ShaderDescriptorExtensions` for property size calculations.
- Simplified constant buffer handling in `Material.cs`.
- Improved resource management in `D3D12` components.
- Added support for static meshes and optimized resource barriers.
- Refactored shader code generation and property merging in `SDLCompiler`.
- Removed unused or redundant code (e.g., `IncludesBlock` parser).
- Updated comments, documentation, and error handling for clarity.
2025-11-28 18:58:50 +09:00

27 lines
645 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);
}
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");
}
}