Use texelFetch+debug grid in atlas

This commit is contained in:
bloeys
2022-07-06 17:53:55 +04:00
parent afcd514f98
commit d23e833b54
4 changed files with 47 additions and 13 deletions

View File

@ -137,8 +137,8 @@ func (gr *GlyphRend) DrawTextOpenGLAbs(text string, screenPos *gglm.Vec3, color
gr.GlyphVBO[buffIndex+5] = color.A()
//Model Pos
gr.GlyphVBO[buffIndex+6] = roundF32(drawPos.X())
gr.GlyphVBO[buffIndex+7] = roundF32(drawPos.Y())
gr.GlyphVBO[buffIndex+6] = drawPos.X()
gr.GlyphVBO[buffIndex+7] = drawPos.Y()
gr.GlyphVBO[buffIndex+8] = drawPos.Z()
//Model Scale