Artist Sample Materials

From OpenFrag

Jump to: navigation, search

Return to the Tutorials and Samples

Contents

Introduction

This page covers the fundamentals on materials for OpenFrag. Also there will be a lot of samples you can play with.

The Ogre3D material system

If you are just a little into the materials, it's really recommended to study these articles carefully! Once you get the hang of it, you'll be able to create great looking visual effects!


Shader Samples

Using shaders
The shader generally consists of a source file and a program file. The source is the actual shader and the program makes it accessible for for example OgreMax or just Ogre itself of course. Other layouts can be found around the net too, but it's good practice to set them up this way. Make sure the shader is in one of the resource groups.
Keep in mind:

  • Cg = Directx and OpenGL
  • HLSL = DirectX
  • GLSL = OpenGL

The Monster shader (Cg)

Shader source

Offsetmapping + specular shader (Cg)


Holographe shader (Cg)


Terrain shader (Cg)


Skin shader (Cg)


Personal tools
OpenFrag