parent
6f99f469c6
commit
1b714108cd
|
|
@ -219,7 +219,7 @@ public:
|
||||||
if (s != 0) {
|
if (s != 0) {
|
||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
if (phong.boolValue()) {
|
if (phong.intValue() > 0) {
|
||||||
return DEFAULT_PHONG_ANGLE;
|
return DEFAULT_PHONG_ANGLE;
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
|
@ -281,6 +281,7 @@ public:
|
||||||
|
|
||||||
/* phong */
|
/* phong */
|
||||||
lockable_bool_t phongallowed;
|
lockable_bool_t phongallowed;
|
||||||
|
lockable_vec_t phongangle;
|
||||||
|
|
||||||
/* bounce */
|
/* bounce */
|
||||||
lockable_bool_t bounce;
|
lockable_bool_t bounce;
|
||||||
|
|
@ -330,6 +331,7 @@ public:
|
||||||
|
|
||||||
/* phong */
|
/* phong */
|
||||||
phongallowed {"phong", true},
|
phongallowed {"phong", true},
|
||||||
|
phongangle { "phong_angle", 0},
|
||||||
|
|
||||||
/* bounce */
|
/* bounce */
|
||||||
bounce {"bounce", false},
|
bounce {"bounce", false},
|
||||||
|
|
|
||||||
|
|
@ -335,6 +335,7 @@ FindModelInfo(const mbsp_t *bsp, const char *lmscaleoverride)
|
||||||
/* The world always casts shadows */
|
/* The world always casts shadows */
|
||||||
modelinfo_t *world = new modelinfo_t { bsp, &bsp->dmodels[0], lightmapscale };
|
modelinfo_t *world = new modelinfo_t { bsp, &bsp->dmodels[0], lightmapscale };
|
||||||
world->shadow.setFloatValue(1.0f); /* world always casts shadows */
|
world->shadow.setFloatValue(1.0f); /* world always casts shadows */
|
||||||
|
world->phong_angle = cfg_static.phongangle;
|
||||||
modelinfo.push_back(world);
|
modelinfo.push_back(world);
|
||||||
tracelist.push_back(world);
|
tracelist.push_back(world);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue