14 lines
349 B
Plaintext
14 lines
349 B
Plaintext
(program
|
|
(constant_buffer camera
|
|
[(:= projection float4x4)
|
|
(:= view float4x4)])
|
|
|
|
(fun vertex vs_main -> float4 (@position)
|
|
[(:= pos float4 (@position))]
|
|
(:= mv float4 (mul camera.view pos))
|
|
(:= mvp float4 (mul camera.projection mv))
|
|
(return mvp))
|
|
|
|
(fun pixel ps_main -> float4 (@target)
|
|
[]
|
|
(return (float4 0.5 0.5 0.5 1)))) |