Can't redefine a material?
Posted: Fri Dec 01, 2017 10:00 am
Hi all, I'm back into Grimrock tinkering after a couple of years away...!
I'm trying to redefine some dungeon materials, but my changes are never reflected in the dungeon. I have added a copy of an original material definition to my own materials.lua, and just changed the paths/filenames, like this:
I thought this would just update the texture acrosss all models that use it, but I never see the changes, I still get the old material.
I've tried it by completely reloading the game, and the editor, and no change.
What am I doing wrong?
I'm trying to redefine some dungeon materials, but my changes are never reflected in the dungeon. I have added a copy of an original material definition to my own materials.lua, and just changed the paths/filenames, like this:
Code: Select all
defineMaterial{
name = "dungeon_wall_01",
diffuseMap = "mod_assets/textures/env/mytexture_dif.tga",
specularMap = "mod_assets/textures/env/mytexture_spec.tga",
normalMap = "mod_assets/textures/env/mytexture_normal.tga",
doubleSided = false,
lighting = true,
alphaTest = false,
blendMode = "Opaque",
textureAddressMode = "Wrap",
glossiness = 25,
depthBias = 0,
}
I've tried it by completely reloading the game, and the editor, and no change.
What am I doing wrong?