Tremulous Forum

Media => Mapping Center => Topic started by: Evoc on August 17, 2008, 05:41:40 am

Title: Stretched Textures
Post by: Evoc on August 17, 2008, 05:41:40 am
One of my textures, or more specifically, the terrain_snow shader from Karith, appears messed up and stretched everywhere (except a few places) where it is applied.

Why is this? It has never happened before with any other texture/shader that I have used.

How can I fix this? Is it something wrong with my compile?
Title: Re: Stretched Textures
Post by: Taiyo.uk on August 17, 2008, 06:02:57 am
That texture is actually a shader that is projected in the Y axis. Because of this it will exhibit stretching artifacts on near-vertical faces. Try following SimonOC's phong shading articles (http://www.simonoc.com/pages/articles/phongshading1.htm) for an explanation of terrain shaders.