dijital wrote:Hi, I am using a 'mirror mode' plugin in my game
http://www.assetstore.unity3d.com/en/#!/content/31374
But when It is enabled, only half of the items in my scene get blurred.
It works perfect;y well when mirror mode is not enabled.
Any ideas?
Thanks.
function OnPreCull () {
camera.ResetWorldToCameraMatrix ();
camera.ResetProjectionMatrix ();
camera.projectionMatrix = camera.projectionMatrix * Matrix4x4.Scale(Vector3 (1, -1, 1));
}
function OnPreRender () {
GL.SetRevertBackfacing (true);
}
function OnPostRender () {
GL.SetRevertBackfacing (false);
}
@script RequireComponent (Camera)
dijital wrote:I think what is happening is that Amplify motion is processing the pre flipped image.
Is there a way to mirror the 'blur' is script?
The same thing happens wheni apply this script to camera
- Code: Select all
function OnPreCull () {
camera.ResetWorldToCameraMatrix ();
camera.ResetProjectionMatrix ();
camera.projectionMatrix = camera.projectionMatrix * Matrix4x4.Scale(Vector3 (1, -1, 1));
}
function OnPreRender () {
GL.SetRevertBackfacing (true);
}
function OnPostRender () {
GL.SetRevertBackfacing (false);
}
@script RequireComponent (Camera)
dijital wrote:I removed the mirror mode effect and added the the script I posted in my last post to the camera and the same thing happens so it seems the problem isnt just with mirror mode for me.
I do not have the same problem using unity's fast bloom post effect. when mirror mode is on or the above script is enabled.
Users browsing this forum: No registered users and 0 guests