Skip to main content
GameDev.net gamedev.net
šŸ”’ Locked

cgSetParameterValuefc question

Started by amigocz Dec 8, 2008 at 3:07 AM 0 replies 400+ views
Original Post
amigocz
amigocz
Hi, I've got a structure in my vertex shader containing only floats like this one struct particle { float3 position; float4 color; float size; }; and I would like to ask if I can fill this structure using the void cgSetParameterValuefc( CGparameter param, int nelements, const float * v ); function. It doesn't work for me but I think that it should be possible since this structure contains only float varibles.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.