[RenderMonkey] Red Color
// Vertex Shader
struct VS_INPUT
{
float4 mPosition : POSITION;
};
struct VS_OUTPUT
{
float4 mPosition : POSITION;
};
float4x4 gWorldMatrix;
float4x4 gViewMatrix;
float4x4 gProjectionMatrix;
VS_OUTPUT vs_main(VS_INPUT Input)
{
VS_OUTPUT Output;
Output.mPosition = mul(Input.mPosition, gWorldMatrix);
Output.mPosition = mul(Output.mPosition, gViewMatrix);
Output.mPosition = mul(Output.mPosition, gProjectionMatrix);
return (Output);
}
// Pixel Shader
float4 ps_main() : COLOR
{
return(float4(1.0f, 0.0f, 0.0f, 1.0f));
}
'Study > RenderMonkey - 2019년 백업' 카테고리의 다른 글
[RenderMonkey] Mapping (1) | 2023.12.06 |
---|---|
[RenderMonkey] Specular, ambient (1) | 2023.12.06 |
[Render Monkey] Phong (1) | 2023.12.06 |
[RenderMonkey] Diffuse (1) | 2023.12.06 |
[RenderMonkey] Globe (1) | 2023.12.06 |