MCPcopy
hub / github.com/EngoEngine/engo / blendmapShader

Struct blendmapShader

common/render_shaders_blendmap.go:94–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

92)
93
94type blendmapShader struct {
95 BatchSize int
96
97 indices []uint16
98 indexBuffer *gl.Buffer
99 program *gl.Program
100
101 vertices []float32
102 vertexBuffer *gl.Buffer
103 lastTexture *gl.Texture
104 lastTexturePack *TexturePack
105 lastRepeating TextureRepeating
106 lastMagFilter, lastMinFilter ZoomFilter
107
108 inPosition int
109 inTexCoords int
110 inColor int
111
112 matrixProjView *gl.UniformLocation
113 uf_BlendMap *gl.UniformLocation
114 uf_Fallback *gl.UniformLocation
115 uf_RChannel *gl.UniformLocation
116 uf_GChannel *gl.UniformLocation
117 uf_BChannel *gl.UniformLocation
118
119 uf_scaleFB *gl.UniformLocation
120 uf_scaleR *gl.UniformLocation
121 uf_scaleG *gl.UniformLocation
122 uf_scaleB *gl.UniformLocation
123
124 projectionMatrix *engo.Matrix
125 viewMatrix *engo.Matrix
126 modelMatrix *engo.Matrix
127 cullingMatrix *engo.Matrix
128
129 camera *CameraSystem
130 cameraEnabled bool
131
132 idx int
133}
134
135func (s *blendmapShader) Setup(w *ecs.World) error {
136 if s.BatchSize > MaxSprites {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected