Last active
September 13, 2019 07:57
-
-
Save lcrs/7100e46f7385b10ab790ef18dbcbee99 to your computer and use it in GitHub Desktop.
point-based vector displacement with UV offset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
uv on points, massive smooth of P with attribblur, normal, polyframe | |
then into this with the original on second input: | |
[email protected] = dot(@opinput1_P - @P, v@N); | |
[email protected] = dot(@opinput1_P - @P, v@tangentu); | |
[email protected] = dot(@opinput1_P - @P, v@tangentv); | |
remesh the smoothed one then output of above into second input of: | |
vector ouv = @uv; | |
matrix3 m = ident(); | |
rotate(m, chf('uvrot'), {0,0,1}); | |
ouv -= 0.5; | |
ouv *= m; | |
ouv += 0.5; | |
ouv += set(chf('uvox'), chf('uvoy'), 0.0); | |
ouv = ouv % 1.0; | |
vector diff = uvsample(1, 'diff', 'uv', ouv); | |
@P += diff.x * v@N; | |
@P += diff.y * v@tangentu; | |
@P += diff.z * v@tangentv; | |
o and redshift render view LUTs https://we.tl/t-gNrEIMqPgy |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment