Reflections with bump

Blitz3D Forums/Blitz3D Programming/Reflections with bump

	; render reflection-meshes only to small texture
		SetBuffer TextureBuffer (texReflect)
		CameraViewport cam, 0, 0, TextureWidth(texReflect), TextureHeight(texReflect)
		ShowEntity pReflect
			RenderEntity pReflect,cam,1,2
		HideEntity pReflect

	
	; render main scene (without reflection-meshes)
		SetBuffer BackBuffer()
		CameraViewport cam, 0, 0, GraphicsWidth(), GraphicsHeight()
		ShowEntity pNormal
		RenderWorld


RenderEntity is faster than 2 full renders..... only have a problem with the z-order on alpha entities... but, is pretty simple to fix. D: