Main menu

Category Archives: RenderMonkey Shaders

Lately disscussed with a friend about penumbra shadows. I found a paper about this theme which used a edge detection filter to achive penumbra shadows, so I wrote a edge-detection filter in rendermonkey. Basically it looks if the difference between 5 pixels, which are ordered in a cross, are to high, then it is a edge pixel.

If you generate some data with the GPU or CPU, for example with the marching cubes algorithm, you don’t have texturecoordinates to texture the generated mesh. To solve this problem I wrote a 3 way mapping shader, which generates texturecoordinates, binormals and tangents only out of the vertex position and vertex normal. This technique was also presented in Nvidia’s “Cascades Demo Secrets” paper. To test the mapping I applied my parallax occlusion mapping shader.

I wrote a parallax occlusion Shader in Rendermonkey. Unfortunately due to the fact that the devartives in flow control elements are undefined, the ARB_texture_lod extension would be neccesarry for this shader in glsl with shadermodel 3.0. Until this extension is released EXT_gpu_shader4 has to be used as replacement. So this shader only runs on gForce 8+ cards. Ati doesn’t support that extension yet.

Meta

Privacy Preference Center

Consent Management

Close your account?

Your account will be closed and all data will be permanently deleted and cannot be recovered. Are you sure?

This website stores some user agent data. These data are used to provide a more personalized experience and to track your whereabouts around our website in compliance with the European General Data Protection Regulation. If you decide to opt-out of any future tracking, a cookie will be set up in your browser to remember this choice for one year. I Agree, Deny