Normalizer: Normalize texture color value by that much.blend_kd: Half weight texture color, half weight diffuse color.replace_all: Replace all color with texture color.replace_kd: While calculating the diffuse color, replace kd constant with the texture color normalized to.DecalMode: replace_kd, replace_all, blend_kd.Bilinear: Do not round, but average four neighbour pixels’ texture color values.
Nearest: If hit (1.2, 3.4), round to nearest pixel integer coordinate (1, 3) on the texture and use that color.Use perlin noise instead of an image if the value of this tag is “perlin”. Texture Mappingįrom now on, we have the Textures tag in our input scene files. In this post, we will examine them together!Īpart from those capabilities, I have also added support for backgroundTexture, where a color read from that background texture is used to color the current pixel when a ray cast from that pixel does not hit any object in the scene. In my fourth assignment, my task was to implement: I am back again but this time with textures!