Community
Arnold General Rendering Forum
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

OSL texture() "blur" argument

1 REPLY 1
Reply
Message 1 of 2
zenop
1141 Views, 1 Reply

OSL texture() "blur" argument

Is the "blur" argument in a texture() call implemented for Arnold?

Tags (1)
Labels (1)
  • OSL
1 REPLY 1
Message 2 of 2
madsd
in reply to: zenop

You need to hook Auto Mip-mapping in render settings.
This makes it possible to parse a bias to the blur float value.

3836-qweqwe.png

shader TextureDOF
(
	point Po = P,
	float strength = 0.022,
	float Time = 0,
	string fileName = "",
output color Out = 0, ) { point p = Po; float focus = sin(Time)*.35+.5; float blur = strength*sqrt(abs(p[1] - focus));
Out = texture(fileName, p[0],1-p[1], "blur", blur); }

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Design & Make Report