Jump to content

Blend SkyBox Cubemaps


Recommended Posts

I'd like to modify the SkyBox class to blend between two (or more) cubemaps depending on time of day. I've hacked up ScatterSky to do this (have it fading between a day & night cubemap in the shader right now) but it feels like overkill for what I need. ScatterSky does a lot of work simulating light scattering, ambient colors, sun corona, etc. and also has a weird dome shape that doesn't match up well against the horizon.

SkyBox and ScatterSky use cubemaps differently and I don't have a good enough grasp of T3D's rendering system to know where to start. SkyBox uses a BaseMatInstance to hold the cubemap material and calls setupPass() whereas ScatterSky uses CubemapData and calls GFX->setCubeTexture().

Has anyone done anything like this before?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...