Exemplo n.º 1
0
func NewDebugWaterRenderer() *renderstuff.Renderer {
	program := helpers.MakeProgram3("Water.vs", "Normal.gs", "Line.fs")
	name := "Water Normals"
	renderer := renderstuff.NewRenderer(program, name, nil, WaterUpdate)
	renderer.OverrideModeToPoints = true
	return renderer
}
Exemplo n.º 2
0
func NewHeightMapRenderer() *renderstuff.Renderer {
	return renderstuff.NewRenderer(
		helpers.MakeProgram("HeightMap.vs", "HeightMap.fs"),
		"height map",
		nil,
		HeightMapUpdate,
	)
}
Exemplo n.º 3
0
func NewScreenQuadRenderer() (this *renderstuff.Renderer) {
	program := helpers.MakeProgram("ScreenQuad.vs", "ScreenQuad.fs")
	return renderstuff.NewRenderer(program, "ScreenQuad", nil, nil)
}
Exemplo n.º 4
0
func NewMeshRenderer() (this *renderstuff.Renderer) {
	return renderstuff.NewRenderer(helpers.MakeProgram("Mesh.vs", "Mesh.fs"), "mesh", nil, nil)
}
Exemplo n.º 5
0
func NewPortalRenderer() *renderstuff.Renderer {
	program := helpers.MakeProgram("Portal.vs", "Portal.fs")
	return renderstuff.NewRenderer(program, "Portal", nil, nil)
}
Exemplo n.º 6
0
func NewSurfaceWaterRenderer() *renderstuff.Renderer {
	program := helpers.MakeProgram("Water.vs", "Water.fs")
	name := "Water"
	return renderstuff.NewRenderer(program, name, nil, WaterUpdate)
}
Exemplo n.º 7
0
func NewTreeRenderer() *renderstuff.Renderer {
	program := helpers.MakeProgram("Sprite.vs", "Sprite.fs")
	return renderstuff.NewRenderer(program, "TreeSprite", nil, TreeUpdate)
}
Exemplo n.º 8
0
func NewSkyboxRenderer() *renderstuff.Renderer {
	program := helpers.MakeProgram("Skybox.vs", "Skybox.fs")
	return renderstuff.NewRenderer(program, "Skybox", nil, nil)
}