Hi All,
Does anyone have an idea on how we could make an area of a dungeon be partially flooded by water ?
Regards,
Code: Select all
defineObject{
name = "sx_flooded",
class = "LightSource",
lightPosition = vec(0, 0.4, 0),
lightRange = 0,
lightColor = vec(1, 1, 1),
brightness = 1,
castShadow = false,
model = "mod_assets/models/sx_flooded.fbx",
placement = "floor",
particleSystem = "waterflow",
particleSystemNode = "MainObject",
replacesFloor = false,
editorIcon = 136,
}
Code: Select all
defineParticleSystem{
name = "waterflow",
emitters = {
{
emissionRate = 1000,
emissionTime = 0,
spawnBurst = false,
maxParticles =1000,
boxMin = {-1.3,-1,-1.3},
boxMax = {1.3,0,1.3},
objectSpace = true,
sprayAngle = {0,1},
velocity = {0,0},
texture = "assets/textures/particles/glitter_silver.tga",
lifetime = {100000, 100000},
colorAnimation = false,
color0 = {1, 1, 1},
opacity = 0.7,
fadeIn = 0.4,
fadeOut = 2.5,
size = {0.05, 0.1},
gravity = {10,0,0},
airResistance = 1,
rotationSpeed = 8,
blendMode = "Additive",
}
}
}
defineParticleSystem{
name = "waterstatic",
emitters = {
{
emissionRate = 1000,
emissionTime = 0,
spawnBurst = false,
maxParticles =300,
boxMin = {-1.3,-1,-1.3},
boxMax = {1.3,0,1.3},
objectSpace = true,
sprayAngle = {0,1},
velocity = {0,0},
texture = "assets/textures/particles/glitter_silver.tga",
lifetime = {100000, 100000},
colorAnimation = false,
color0 = {1, 1, 1},
opacity = 0.7,
fadeIn = 0.4,
fadeOut = 2.5,
size = {0.05, 0.1},
gravity = {0,0,0},
airResistance = 1,
rotationSpeed = 8,
blendMode = "Additive",
}
}
}