20 lines
316 B
Go
20 lines
316 B
Go
package uniform
|
|
|
|
import (
|
|
"zworld/plugins/math/mat4"
|
|
"zworld/plugins/math/vec2"
|
|
"zworld/plugins/math/vec4"
|
|
)
|
|
|
|
type Camera struct {
|
|
Proj mat4.T
|
|
View mat4.T
|
|
ViewProj mat4.T
|
|
ProjInv mat4.T
|
|
ViewInv mat4.T
|
|
ViewProjInv mat4.T
|
|
Eye vec4.T
|
|
Forward vec4.T
|
|
Viewport vec2.T
|
|
}
|