git-svn-id: svn://db.shs.com.ru/libs@55 a8b55f48-bf90-11e4-a774-851b48703e85

This commit is contained in:
2015-12-01 20:27:03 +00:00
parent c8ceb3e328
commit eed954203d
9 changed files with 74 additions and 50 deletions

View File

@@ -210,7 +210,7 @@ void GLObjectBase::render(int * id, QMap<int, GLObjectBase * > * ids, int sh_id_
Light::Light(): GLObjectBase(), shadow_map(0, true, GL_R16F) {
Light::Light(): GLObjectBase(), shadow_map(1, true, GL_R16F) {
type_ = GLObjectBase::Light;
light_type = Omni;
intensity = 1.;
@@ -221,7 +221,7 @@ Light::Light(): GLObjectBase(), shadow_map(0, true, GL_R16F) {
}
Light::Light(const QVector3D & p, const QColor & c, GLdouble i): GLObjectBase(), shadow_map(0, true, GL_R16F) {
Light::Light(const QVector3D & p, const QColor & c, GLdouble i): GLObjectBase(), shadow_map(1, true, GL_R16F) {
type_ = GLObjectBase::Light;
light_type = Omni;
pos_ = p;