datalurkur / Mountainhome

A detailed and intricate worldsim borrowing from the Dungeon Keeper-style dungeon-building mechanic
You're lookin' at it.
6 stars 2 forks source link

Materials: Multi-Texture #30

Closed datalurkur closed 14 years ago

datalurkur commented 14 years ago

1) Finish any implementation necessary 2) Test multi-texturing 3) Document

datalurkur commented 14 years ago

14:05 @loch Well, the terrain will need a Material that has a shader (which declares the use of two textures) and two textures associated with it. When the material is activated, it needs to activate the shader and attach the two textures to the correct texture unit. 14:06 @loch Material will need to be updated to handle shaders and textures (REALLY needs to be done anyways). 14:06 @loch The Shader class comes with a 'setTexture' function to do this. 14:06 @loch Not sure if you need to call it every time or just once... been a while... 14:07 @loch also, stick to GLSL for now, as Cg isn't supported, yet.

datalurkur commented 14 years ago

This is working, wewt!