コード例 #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
}
コード例 #2
0
func NewHeightMapRenderer() *renderstuff.Renderer {
	return renderstuff.NewRenderer(
		helpers.MakeProgram("HeightMap.vs", "HeightMap.fs"),
		"height map",
		nil,
		HeightMapUpdate,
	)
}
コード例 #3
0
func NewScreenQuadRenderer() (this *renderstuff.Renderer) {
	program := helpers.MakeProgram("ScreenQuad.vs", "ScreenQuad.fs")
	return renderstuff.NewRenderer(program, "ScreenQuad", nil, nil)
}
コード例 #4
0
func NewMeshRenderer() (this *renderstuff.Renderer) {
	return renderstuff.NewRenderer(helpers.MakeProgram("Mesh.vs", "Mesh.fs"), "mesh", nil, nil)
}
コード例 #5
0
func NewPortalRenderer() *renderstuff.Renderer {
	program := helpers.MakeProgram("Portal.vs", "Portal.fs")
	return renderstuff.NewRenderer(program, "Portal", nil, nil)
}
コード例 #6
0
func NewSurfaceWaterRenderer() *renderstuff.Renderer {
	program := helpers.MakeProgram("Water.vs", "Water.fs")
	name := "Water"
	return renderstuff.NewRenderer(program, name, nil, WaterUpdate)
}
コード例 #7
0
func NewTreeRenderer() *renderstuff.Renderer {
	program := helpers.MakeProgram("Sprite.vs", "Sprite.fs")
	return renderstuff.NewRenderer(program, "TreeSprite", nil, TreeUpdate)
}
コード例 #8
0
func NewSkyboxRenderer() *renderstuff.Renderer {
	program := helpers.MakeProgram("Skybox.vs", "Skybox.fs")
	return renderstuff.NewRenderer(program, "Skybox", nil, nil)
}