#================================================================ #================================================================ #== #== This rib file was created to quickly test shaders #== and see how they appear on both flat and curved #== surfaces. #== #== To try out a new shader, simply change one of the #== 'Surface' declarations so that it calls your compiled #== shader. #== #================================================================ #================================================================ Display "imagename" "framebuffer" "rgba" Format 400 400 1 Projection "perspective" "fov" 1.0 Translate 0 0 200 Rotate -90 1 0 0 #=========== MODIFY THIS TO CREATE A TEXTURE FILE =========== # MakeTexture "original_image_name" "texture_name" # "periodic" "periodic" "gaussian" 2 2 WorldBegin LightSource "distantlight" 1 "intensity" 1.0 "from" [50 50 50] "to" [0 0 0] LightSource "distantlight" 2 "intensity" 0.4 "from" [-20 20 -20] "to" [0 0 0] LightSource "ambientlight" 3 "intensity" 0.5 Scale .3 .3 .3 #========= CHANGE THIS LINE TO CALL A DIFFERENT SHADER ========= # Surface "plastic" "Ka" [0.0] "Kd" [0.5] "Ks" [0.5] "roughness" [0.1] # sphere AttributeBegin Color [1.00 1.00 1.00] Scale 2 2 2 Rotate 180 1 0 0 Sphere 2.0 -2.0 2.0 360.0 AttributeEnd #========= CHANGE THIS LINE TO CALL A DIFFERENT SHADER ========= # Surface "matte" "Ka" [0.0] "Kd" [0.5] # back plane AttributeBegin Color [1.00 1.00 1.00] Scale 15 15 15 Patch "bilinear" "P" [-.5 0 -.5 .5 0 -.5 -.5 0 .5 .5 0 .5 ] AttributeEnd WorldEnd