Beispiel #1
0
func onWinThread() {
	apputil.CheckCamCtlKeys()
	apputil.CheckAndHandleToggleKeys()

	//	pulsating materials
	ng.Core.Libs.Effects[apputil.LibIDs.Fx["cat"]].GetOrangify(0).SetMixWeight(0.5 + (0.5 * math.Sin(ng.Loop.Tick.Now*4)))
	ng.Core.Libs.Effects[apputil.LibIDs.Fx["dog"]].GetTex2D(1).SetMixWeight(0.5 + (0.5 * math.Cos(ng.Loop.Tick.Now*2)))
}
Beispiel #2
0
func onWinThread() {
	apputil.CheckCamCtlKeys()
	apputil.CheckAndHandleToggleKeys()
	if ng.UserIO.KeyToggled(apputil.KeyF12) {
		apputil.RearView.Toggle()
	}
	if ng.UserIO.KeyToggled(apputil.KeyF10) {
		addCrates(apputil.SceneCam.Scene(), 3)
	}
	if ng.UserIO.KeyToggled(apputil.KeyF11) {
		removeCrates(apputil.SceneCam.Scene(), 3)
	}
	apputil.RearView.OnWin()

	//	pulsating fx anims
	ng.Core.Libs.Effects[apputil.LibIDs.Fx["mosaic"]].GetTex2D(1).SetMixWeight(0.5 + (0.5 * math.Cos(ng.Loop.Tick.Now*2)))
	apputil.RearView.View.FxProcs.GetOrangify(0).SetMixWeight(0.75 + (0.25 * math.Sin(ng.Loop.Tick.Now*4)))
}
Beispiel #3
0
//	called once per frame in main thread
func onWinThread() {
	apputil.CheckAndHandleToggleKeys()
}
Beispiel #4
0
func onWinThread() {
	apputil.CheckCamCtlKeys()
	apputil.CheckAndHandleToggleKeys()
	ng.Core.Libs.Effects[apputil.LibIDs.Fx["pulse"]].GetColor(1).SetMixWeight(0.5 + (0.5 * math.Sin(ng.Loop.Tick.Now*4)))
}