- Home /
Cannot implicitly cinvert type 'float' to 'UnityEngine.Camera' ?
Cannot implicitly convert type 'float' to 'UnityEngine.Camera' ? I'm trying to make the AudioPeer that I've created with TFF.Window.Blackman to take my Camera Script and sync it to audio by using bandBuffers. I don't know how to grab that one string from my AnalogGlitch Script and place it in this CameraAV script I'm trying to make. I tried using _minIntensity & _maxIntensity but it's not working like that.
My AnalogGlitch has got this stuff into it but I'm not sure how to use it:
void OnRenderImage(RenderTexture source, RenderTexture destination)
{
if (_material == null)
{
_material = new Material(_shader);
_material.hideFlags = HideFlags.DontSave;
}
_verticalJumpTime += Time.deltaTime * _verticalJump * 11.3f;
var sl_thresh = Mathf.Clamp01(1.0f - _scanLineJitter * 1.2f);
var sl_disp = 0.002f + Mathf.Pow(_scanLineJitter, 3) * 0.05f;
_material.SetVector("_ScanLineJitter", new Vector2(sl_disp, sl_thresh));
All I'm trying to do is to make this AnalogGlitch react to my AudioVisualisation scripts. Maybe I need to tackle this in a different way?
I know what I need to do, I just don't know how:
My attempt using the CameraAV script: Grab Scan Line Jitter slider from Analog Glitch script and make it react to my AudioVisualisation scripts.
Any help will be massively appreciated!