예제 #1
0
파일: fxeffect.go 프로젝트: go3d/go-collada
//	Adds a new common profile to the specified effect definition (even if it already contains one).
func FxAddProfileCommon(def *cdom.FxEffectDef) (prof *cdom.FxProfile) {
	prof = cdom.NewProfile()
	prof.Common = &cdom.FxProfileCommon{}
	def.Profiles = append(def.Profiles, prof)
	return
}
예제 #2
0
파일: fxeffect.go 프로젝트: go3d/go-collada
//	Adds a new GLSL profile to the specified effect definition (even if it already contains one).
func FxAddProfileGlsl(def *cdom.FxEffectDef) (prof *cdom.FxProfile) {
	prof = cdom.NewProfile()
	prof.Glsl = cdom.NewFxProfileGlsl()
	def.Profiles = append(def.Profiles, prof)
	return
}