» Topographic Phong Shader
This site relies heavily on Javascript. You should enable it if you want the full experience. Learn more.

Topographic Phong Shader

effect

about

Simple shader to apply topographic-map-like shading to a mesh using world Y. Includes helper functions and plugin for generating the 1D texture and the palette used. Can be easily changed to use object space instead of world, see inside the .fx file (maybe in v2 it will be settable...).

Thanks to all for the help in the forum discussion!

download

TopoShader-v1.zip
18.02.15 [01:29 UTC] by mediadog | 1413 downloads
TopoShader v1

DiMiX 22/02/2015 - 01:20

Thanks!
how to change .fx to map it Z world?

mediadog 22/02/2015 - 22:01

@DiMiX - excellent question! Seems like there could be a way to use the texture transform to modify it, but I'd have to fool around with it. Anyone? Anyone? Bueller?

sebl 22/02/2015 - 23:10

elevation has a transform to rotate the lines' orientations.

also the lines itself are controled by the shader itself. have a look at this ddx and ddy thingy. they can also be replaced with ddx_fine and ddy_fine, but is doesn't seem to make a huge difference.

SuperflysiNZ 16/11/2015 - 09:32

Has anyone made a version of this for DX11?

SuperflysiNZ 16/11/2015 - 09:35

Just realized it's actually part of this shader, but is coming up red, and technique is empty...

anonymous user login

Shoutbox

~21d ago

joreg: END OF SHOUTBOX! As this page has is now legacy, it will no longer feature new content. For latest news, see: http://vvvv.org

~1mth ago

joreg: vvvvTv S0204 is out: Custom Widgets with Dear ImGui: https://youtube.com/live/nrXfpn5V9h0

~1mth ago

joreg: New user registration is currently disabled as we're moving to a new login provider: https://visualprogramming.net/blog/2024/reclaiming-vvvv.org/

~2mth ago

joreg: vvvvTv S02E03 is out: Logging: https://youtube.com/live/OpUrJjTXBxM

~2mth ago

~2mth ago

joreg: Follow TobyK on his Advent of Code: https://www.twitch.tv/tobyklight

~2mth ago

joreg: vvvvTv S02E02 is out: Saving & Loading UI State: https://www.youtube.com/live/GJQGVxA1pIQ

~2mth ago

joreg: We now have a presence on LinkedIn: https://www.linkedin.com/company/vvvv-group

~2mth ago

joreg: vvvvTv S02E01 is out: Buttons & Sliders with Dear ImGui: https://www.youtube.com/live/PuuTilbqd9w

~2mth ago

joreg: vvvvTv S02E00 is out: Sensors & Servos with Arduino: https://visualprogramming.net/blog/2024/vvvvtv-is-back-with-season-2/