/* * File: ParticleRenderable.js * * ParticleRenderable specifically for particles (additive blending) */ /*jslint node: true, vars: true, white: true */ /*global gEngine, TextureRenderable, Renderable */ /* find out more about jslint: http://www.jslint.com/help.html */ // Constructor and object definition "use strict"; // Operate in Strict mode such that variables must be declared before used! function ParticleRenderable(myTexture) { TextureRenderable.call(this, myTexture); Renderable.prototype._setShader.call(this, gEngine.DefaultResources.getParticleShader()); } gEngine.Core.inheritPrototype(ParticleRenderable, TextureRenderable);