Free Shaders - Page 5

Picture

See the notes on the Free Shaders Intro Page concerning the download and use of these shaders.

Picture

TG GLASS

A sophisticated shader, that allows for the creation of just about any reflectance material imaginable, although it has special processing in it which makes it particularly useful for producing glass.

The shader introduces several new types of processing, to give (in my opinion) the most flexible and realistic glass rendering seen yet in trueSpace. First, you have full control over what the shader should do when it encounters Total Internal Reflection, opting for realistic processing where the ray is reflected rather than refracted, through to simpler (and so faster) processing where the ray simply escapes from the object, or even simpler processing where raytracing stops and a single colour is used.

Next, the shader features Fresnel effects in transmission and reflection, both of which can be controlled separately. This means you can have your glass less transparent and more reflective at steeper angles to the camera, creating real world effects for your glass material.

Glass Bowl

The shader also features a new type of processing to combine the specular highlight with the material, allowing the specular highlight to “override” base, transmission and reflection effects. Again, this simulates real world effects, where it is harder to see a reflection or to see through glass where it shows a specular highlight (other shaders often result in the reflection or transmission appearing brighter in the specular highlight).

A test render of a bowl using the glass shader (with apples borrowed from the tS5 tutorial scenes).

Finally, there is a new type of processing for combining reflection and transmission, which allows bright reflections to reduce the transmission effect, or bright areas seen through the glass to reduce the reflection effect. To picture this, imagine looking in through a shop window on a sunny day, where the bright reflection of the street prevents you from seeing through the window, until you raise your hand to block the bright reflection (the “dark” reflection of your hand doesn’t block the transmission).

With all of these features, the shader can create all the effects from shaders such as Glass, Dielectric, Yamaneko Fresnel, Caligari Phong, etc, but with even more power and flexibility than any of those!

One thing to note, however, is that like other custom shaders which include transmission, the glass always produces solid shadows even with raytracing.

Glass in a white environment

A test render of a glass in a purely white environment -  notoriously hard to render, as the glass has nothing to reflect or refract, and relies on the Fresnel effect in the transmission (making the glass darker at the edges).

ShaderLab 1 version : N/A (New To ShaderLab 2!)
ShaderLab 2 version : Last Modified April 2001 (included in ShaderLab 2 distribution)

Picture

TG GLOW

TG Glow is a flexible glow shader, which can be used to achieve a range of effects.

First, it does conventional glows, with an inner centre to the glow, surrounded by a ring. You have full control of the colour and transparency of the inner area, the inside edge of the ring, and the outside edge of the ring.

This control lets you reverse the transparencies, allowing the creation of effects such as atmospheric haze around a planet (the effect has been kept subtle in this sample image, but can be made quite extreme!).

Further, TG Glow supports negative opacity settings - these in effect are “more than totally transparent”, and actually pick up the colours behind the object and make them brighter. This can be used for interesing halo effects.

TG Glow for planet haze (PlanetWater for shiny water with Axion Planet Shader)

Finally, TG Glow has an unusual effect on shadowcasting. Although this is best kept disabled for conventional use (such as the two previous images), it can lead to some very unusual results from shadowing, including some simulated “caustics”.

The shader is split into 2 parts, TG GlowC for colour and TG GlowT for transparency, and can be used together or separately, and each controlled independently.

ShaderLab 1 version : Last Modified 28th Jan 2000
ShaderLab 2 version : Last Modified April 2001 (included in SL2 distribution)

Picture

TG IMAGE SEAMLESSIFY

ShaderLab 2 now includes the ability to process images. TG Image Seamlessify is a colour shader, which takes an input texture and turns it into a simple seamless texture. It does this by repeating the texture, and reversing it each repeat, just as you might do in an external art package. To help reduce the “repeating tiles” nature of this result, noise can be added in to the repeats in the U or the V to vary each repeat.

Although this is a very simple method of turning a texture into a seamless texture (and doesn’t compare to manual or professional image editing to achieve the same aim!), it can still be very useful as a quick and easy means of creating a seamless texture.

ShaderLab 1 version : N/A (new to ShaderLab 2!)
ShaderLab 2 version : Last Modified April 2001 (included in SL2 distribution)

TG IMAGE SEAMLESSIFY 2

This does the same processing as TG Image Seamlessify, except it allow noise in both the U and V directions at the same time. This has been produced as a separate shader, as it’s slightly slower than TG Seamlessify as it has to call two noise functions rather than just one. With the two versions of the shader, you can choose the most appropriate for your needs, depending on speed or level of detail in the noise.

ShaderLab 1 version : N/A (new to ShaderLab 2!)
ShaderLab 2 version : Last Modified April 2001 (included in SL2 distribution)

Picture

SHADERLAB INTRO PAGE

PREV PAGE

NEXT PAGE