File: cube.vert.hlsl

package info (click to toggle)
libsdl3 3.4.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 41,312 kB
  • sloc: ansic: 428,899; objc: 13,036; xml: 9,581; cpp: 8,769; perl: 4,667; python: 3,538; sh: 813; makefile: 271; cs: 56
file content (15 lines) | stat: -rw-r--r-- 284 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15

#include "cube.hlsli"

cbuffer UBO : register(b0, space1)
{
    float4x4 ModelViewProj;
};

VSOutput main(VSInput input)
{
    VSOutput output;
    output.Color = float4(input.Color, 1.0f);
    output.Position = mul(ModelViewProj, float4(input.Position, 1.0f));
    return output;
}