mirror of
https://github.com/JulianGro/overte.git
synced 2025-05-05 10:28:03 +02:00
fix some lingering warnings
This commit is contained in:
parent
09e2c0987e
commit
471e55c8ce
6 changed files with 48 additions and 52 deletions
|
@ -2739,7 +2739,6 @@ const GLfloat WORLD_DIFFUSE_COLOR[] = { 0.6f, 0.525f, 0.525f };
|
||||||
const GLfloat WORLD_SPECULAR_COLOR[] = { 0.94f, 0.94f, 0.737f, 1.0f };
|
const GLfloat WORLD_SPECULAR_COLOR[] = { 0.94f, 0.94f, 0.737f, 1.0f };
|
||||||
|
|
||||||
const glm::vec3 GLOBAL_LIGHT_COLOR = { 0.6f, 0.525f, 0.525f };
|
const glm::vec3 GLOBAL_LIGHT_COLOR = { 0.6f, 0.525f, 0.525f };
|
||||||
const float GLOBAL_LIGHT_INTENSITY = 1.0f;
|
|
||||||
|
|
||||||
void Application::setupWorldLight() {
|
void Application::setupWorldLight() {
|
||||||
|
|
||||||
|
|
|
@ -49,8 +49,6 @@ using namespace std;
|
||||||
const glm::vec3 DEFAULT_UP_DIRECTION(0.0f, 1.0f, 0.0f);
|
const glm::vec3 DEFAULT_UP_DIRECTION(0.0f, 1.0f, 0.0f);
|
||||||
const float YAW_SPEED = 500.0f; // degrees/sec
|
const float YAW_SPEED = 500.0f; // degrees/sec
|
||||||
const float PITCH_SPEED = 100.0f; // degrees/sec
|
const float PITCH_SPEED = 100.0f; // degrees/sec
|
||||||
const float COLLISION_RADIUS_SCALAR = 1.2f; // pertains to avatar-to-avatar collisions
|
|
||||||
const float COLLISION_RADIUS_SCALE = 0.125f;
|
|
||||||
const float DEFAULT_REAL_WORLD_FIELD_OF_VIEW_DEGREES = 30.0f;
|
const float DEFAULT_REAL_WORLD_FIELD_OF_VIEW_DEGREES = 30.0f;
|
||||||
|
|
||||||
const float MAX_WALKING_SPEED = 2.5f; // human walking speed
|
const float MAX_WALKING_SPEED = 2.5f; // human walking speed
|
||||||
|
|
|
@ -791,8 +791,6 @@ void SkeletonModel::renderBoundingCollisionShapes(float alpha) {
|
||||||
glPopMatrix();
|
glPopMatrix();
|
||||||
}
|
}
|
||||||
|
|
||||||
const int BALL_SUBDIVISIONS = 10;
|
|
||||||
|
|
||||||
bool SkeletonModel::hasSkeleton() {
|
bool SkeletonModel::hasSkeleton() {
|
||||||
return isActive() ? _geometry->getFBXGeometry().rootJointIndex != -1 : false;
|
return isActive() ? _geometry->getFBXGeometry().rootJointIndex != -1 : false;
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,7 +32,6 @@ LightEntityItem::LightEntityItem(const EntityItemID& entityItemID, const EntityI
|
||||||
_type = EntityTypes::Light;
|
_type = EntityTypes::Light;
|
||||||
|
|
||||||
// default property values
|
// default property values
|
||||||
const quint8 MAX_COLOR = 255;
|
|
||||||
_color[RED_INDEX] = _color[GREEN_INDEX] = _color[BLUE_INDEX] = 0;
|
_color[RED_INDEX] = _color[GREEN_INDEX] = _color[BLUE_INDEX] = 0;
|
||||||
_intensity = 1.0f;
|
_intensity = 1.0f;
|
||||||
_exponent = 0.0f;
|
_exponent = 0.0f;
|
||||||
|
|
|
@ -267,7 +267,7 @@ void SunSkyStage::updateGraphicsObject() const {
|
||||||
static int firstTime = 0;
|
static int firstTime = 0;
|
||||||
if (firstTime == 0) {
|
if (firstTime == 0) {
|
||||||
firstTime++;
|
firstTime++;
|
||||||
bool result = gpu::Shader::makeProgram(*(_skyPipeline->getProgram()));
|
gpu::Shader::makeProgram(*(_skyPipeline->getProgram()));
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -17,9 +17,11 @@ using namespace meshinfo;
|
||||||
//origin is the default reference point for generating the tetrahedron from each triangle of the mesh.
|
//origin is the default reference point for generating the tetrahedron from each triangle of the mesh.
|
||||||
|
|
||||||
MeshInfo::MeshInfo(vector<Vertex> *vertices, vector<int> *triangles) :\
|
MeshInfo::MeshInfo(vector<Vertex> *vertices, vector<int> *triangles) :\
|
||||||
_vertices(vertices),
|
_vertices(vertices),
|
||||||
_triangles(triangles),
|
_centerOfMass(Vertex(0.0, 0.0, 0.0)),
|
||||||
_centerOfMass(Vertex(0.0, 0.0, 0.0)){
|
_triangles(triangles)
|
||||||
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
MeshInfo::~MeshInfo(){
|
MeshInfo::~MeshInfo(){
|
||||||
|
|
Loading…
Reference in a new issue