10 lines
300 B
Plaintext
10 lines
300 B
Plaintext
(program
|
|
(constant_buffer props (@properties)
|
|
[(:= projection float4x4 (@projection))
|
|
(:= view float4x4 (@view))])
|
|
|
|
(fun vertex vs_main -> float4 (@position)
|
|
[(:= pos float4 (@position))]
|
|
(:= mv float4 (mul props.view pos))
|
|
(:= mvp float4 (mul props.projection mv))
|
|
(return mvp))) |