Directional Light Normal Specular Map + Parallax Mapping


Tweet blitzmax glsl opengl openb3d blitzx rated
(Posted 1 month ago) RonTek

This is one of those wip shaders that is now part of my lost archives.

One of the defacto shaders, particularly if you are making outdoor scenes and games.

Directional Light Normal + Specular Mapping
Image

Directional Light Parallax Mapping
Image

(Posted 1 month ago) markcwm commented:

Hi Ron,

this looks great, I prefer the parallax mapping although they do look very similar.

What's the difference between specular mapping and bump mapping?

Thanks.

(Posted 1 month ago) RonTek commented:

Thanks Mark! Yes, with paralllax mapping it adds more depth and detail but sometimes the effect exaggerates it.

Specular mapping is obviously an old technique where you just control and map shininess with it's own texture map, although getting it from normal map technically counts, where bump mapping is another old technique similar to normal mapping.

I think you already got this covered with bumpmap examples, but it seems there is an issue with directional lighting mode where objects gets darker when the camera is from a distance. This shader solves it but the spotlight and pointlight is not included (yet).

Reply To Topic (minimum 10 characters)

Please log in to reply