So how hard would it be to make a reflection only material?
Something just like the shadow only material, but in this case anywhere that is not an object being reflected it will be discarded to the scenes clearColor.
I could script up a custom Shader to do this, but was hoping there might be a cool trick to pull it off.
I have a transparent clearColor, so now the ground material shows black.
I have tried even setting the opacityTexture and still no luck.
Before I add anything to the reflectionList everything is A ok, but then as soon as a model starts rendering to the reflection the entire ground plane just ignore its alpha. toggle the visibility of the mesh in the reflection list and bam the ground plane goes transparent again.
Its super close I feel like, but still off. The ground plane becomes more or less transparent the farther or closer you get. The lighting disabled just makes the ground plane black on with the weird fade.
This is soooo close, but there is some really weird behavior from the camera distance and stuff.
I am assuming all this is because the reflection material sees Color4(0,0,0,0) as black and not transparent.
@Evgeni_Popov is this something that could be whipped up in the nme? Basically need a planar reflection on a ground plane to take alpha in the reflection into account I think. Maybe there is a simpler way to do this?
End goal is to have a fixed gradient in the background of the scene that does not move, preferably a css gradient in the parentNode behind the scene, that has the reflections on it.