Files
Juliet/Assets/source/ImGui.frag.hlsl
Patedam 87831d0fd6 Added basic concept of Mesh
Right now can create a quad or a cube.
Need a mesh renderer taht keep the buffer and all to optimally handle the mega buffer.
2026-02-15 17:44:48 -05:00

15 lines
323 B
HLSL

struct Input
{
float4 Color : TEXCOORD0;
float2 UV : TEXCOORD1;
};
#include "RootConstants.hlsl"
float4 main(Input input) : SV_Target0
{
Texture2D<float4> tex = ResourceDescriptorHeap[TextureIndex];
SamplerState samp = SamplerDescriptorHeap[0];
return input.Color * tex.Sample(samp, input.UV);
}