Fix misspelling

This commit is contained in:
AlessandroSigna 2015-12-16 10:02:47 -08:00
parent 8e7a2ac536
commit 08f7591787
4 changed files with 12 additions and 12 deletions

View file

@ -27,7 +27,7 @@ QString const Image3DOverlay::TYPE = "image3d";
Image3DOverlay::Image3DOverlay() { Image3DOverlay::Image3DOverlay() {
_isLoaded = false; _isLoaded = false;
_emmisive = false; _emissive = false;
} }
Image3DOverlay::Image3DOverlay(const Image3DOverlay* image3DOverlay) : Image3DOverlay::Image3DOverlay(const Image3DOverlay* image3DOverlay) :
@ -35,7 +35,7 @@ Image3DOverlay::Image3DOverlay(const Image3DOverlay* image3DOverlay) :
_url(image3DOverlay->_url), _url(image3DOverlay->_url),
_texture(image3DOverlay->_texture), _texture(image3DOverlay->_texture),
_fromImage(image3DOverlay->_fromImage), _fromImage(image3DOverlay->_fromImage),
_emmisive(image3DOverlay->_emmisive) _emissive(image3DOverlay->_emissive)
{ {
} }
@ -96,7 +96,7 @@ void Image3DOverlay::render(RenderArgs* args) {
batch->setModelTransform(transform); batch->setModelTransform(transform);
batch->setResourceTexture(0, _texture->getGPUTexture()); batch->setResourceTexture(0, _texture->getGPUTexture());
DependencyManager::get<DeferredLightingEffect>()->bindSimpleProgram(*batch, true, false, _emmisive, true); DependencyManager::get<DeferredLightingEffect>()->bindSimpleProgram(*batch, true, false, _emissive, true);
DependencyManager::get<GeometryCache>()->renderQuad( DependencyManager::get<GeometryCache>()->renderQuad(
*batch, topLeft, bottomRight, texCoordTopLeft, texCoordBottomRight, *batch, topLeft, bottomRight, texCoordTopLeft, texCoordBottomRight,
glm::vec4(color.red / MAX_COLOR, color.green / MAX_COLOR, color.blue / MAX_COLOR, alpha) glm::vec4(color.red / MAX_COLOR, color.green / MAX_COLOR, color.blue / MAX_COLOR, alpha)
@ -147,9 +147,9 @@ void Image3DOverlay::setProperties(const QScriptValue &properties) {
} }
} }
QScriptValue emmisiveValue = properties.property("emmisive"); QScriptValue emissiveValue = properties.property("emissive");
if (emmisiveValue.isValid()) { if (emissiveValue.isValid()) {
_emmisive = emmisiveValue.toBool(); _emissive = emissiveValue.toBool();
} }
} }
@ -163,8 +163,8 @@ QScriptValue Image3DOverlay::getProperty(const QString& property) {
if (property == "offsetPosition") { if (property == "offsetPosition") {
return vec3toScriptValue(_scriptEngine, getOffsetPosition()); return vec3toScriptValue(_scriptEngine, getOffsetPosition());
} }
if (property == "emmisive") { if (property == "emissive") {
return _emmisive; return _emissive;
} }
return Billboard3DOverlay::getProperty(property); return Billboard3DOverlay::getProperty(property);

View file

@ -46,7 +46,7 @@ public:
private: private:
QString _url; QString _url;
NetworkTexturePointer _texture; NetworkTexturePointer _texture;
bool _emmisive; bool _emissive;
QRect _fromImage; // where from in the image to sample QRect _fromImage; // where from in the image to sample
}; };

View file

@ -169,8 +169,8 @@ void DeferredLightingEffect::init(AbstractViewStateInterface* viewState) {
gpu::PipelinePointer DeferredLightingEffect::bindSimpleProgram(gpu::Batch& batch, bool textured, bool culled, gpu::PipelinePointer DeferredLightingEffect::bindSimpleProgram(gpu::Batch& batch, bool textured, bool culled,
bool emmisive, bool depthBias) { bool emissive, bool depthBias) {
SimpleProgramKey config{textured, culled, emmisive, depthBias}; SimpleProgramKey config{textured, culled, emissive, depthBias};
gpu::PipelinePointer pipeline = getPipeline(config); gpu::PipelinePointer pipeline = getPipeline(config);
batch.setPipeline(pipeline); batch.setPipeline(pipeline);

View file

@ -38,7 +38,7 @@ public:
/// Sets up the state necessary to render static untextured geometry with the simple program. /// Sets up the state necessary to render static untextured geometry with the simple program.
gpu::PipelinePointer bindSimpleProgram(gpu::Batch& batch, bool textured = false, bool culled = true, gpu::PipelinePointer bindSimpleProgram(gpu::Batch& batch, bool textured = false, bool culled = true,
bool emmisive = false, bool depthBias = false); bool emissive = false, bool depthBias = false);
void renderSolidSphereInstance(gpu::Batch& batch, const Transform& xfm, const glm::vec4& color); void renderSolidSphereInstance(gpu::Batch& batch, const Transform& xfm, const glm::vec4& color);
void renderSolidSphereInstance(gpu::Batch& batch, const Transform& xfm, const glm::vec3& color) { void renderSolidSphereInstance(gpu::Batch& batch, const Transform& xfm, const glm::vec3& color) {