texture_index
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
texture_index [2013/05/03 14:47] – created alancoelho | texture_index [2022/11/03 15:08] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Texture Index from Spherical Harmonics Parameters - Version 5 ====== | ||
+ | macro Texture_Index(sh, | ||
+ | { | ||
+ | prm = { | ||
+ | fn f(c) { | ||
+ | def s = Concat(sh," | ||
+ | return If(Prm_There(s), | ||
+ | } | ||
+ | | ||
+ | | ||
+ | | ||
+ | +1/13 (f(c60)+f(c61p)+f(c61m)+f(c62p)+f(c62m)+f(c63p)+f(c63m)+f(c64p)+f(c64m)+f(c65p)+f(c65m)+f(c66p)+f(c66m)) | ||
+ | +1/17 (f(c80)+f(c81p)+f(c81m)+f(c82p)+f(c82m)+f(c83p)+f(c83m)+f(c84p)+f(c84m)+f(c85p)+f(c85m)+f(c86p)+f(c86m)+f(c87p)+f(c87m)+f(c88p)+f(c88m)); | ||
+ | } : t | ||
+ | } | ||
+ | |||
+ | |||
+ | |||
+ | ==== Usage ==== | ||
+ | |||
+ | |||
+ | | ||
+ | PO_Spherical_Harmonics(sh, | ||
+ | Texture_Index(sh, | ||
+ | |||
+ | On termination of refinement the second argument of the Texture_Index macro is updated. |