Is it possible to invert the colors on a render texture?
I was thinking in the direction of:
ApplyTexture.prototype.postInitialize = function() {
var layer = this.app.scene.layers.getLayerByName(this.layerName);
// get the material on the first mesh instance this script is attached to
// and apply the rendertarget from the layer to it's diffuse map
var material = this.entity.model.model.meshInstances[0].material;
{meta-code start}
material.diffuseMap = layer.renderTarget.colorBuffer.RGBA16BIT_INVERT; … or whatever that exists in that direction :-/
{meta-code end}
material.update();
};