GLSL point scale attribute

   1738   2   0
User Avatar
Member
96 posts
Joined: 5月 2008
Offline
I've been playing with GLSL shaders but so far I haven't worked out how to access things like point scale. Are there any samples around somewhere?
User Avatar
スタッフ
5161 posts
Joined: 7月 2005
Offline
You can look at houdini/glsl/particle/GL32/disc.prog (which references the .vert, .frag, and sprite.geom). You basically want:
in float pscale;

in your vertex shader to grab pscale. Houdini attributes are matched to GLSL shaders by name.
User Avatar
Member
22 posts
Joined: 11月 2017
Offline
Very similar question I'm dealing with! This is an old topic but felt like bumping here, an example would be perfect!
  • Quick Links