At revision: 38421
Naman Gupta <[email protected]>
| Newsgroups | gmane.comp.graphics.crystalspace.devel |
|---|---|
| Message-ID | <CAJ4hSG0PUAuaGT1EKDNT43e-YROe5Ae9uueG=do4FOHabiZ0-Q@mail.gmail.com> |
Hey guys, so here is what i'm planning to create a shoreline. 1). Get all the points colliding with a plane and store it in an array. 2). pass that array to vertex program. 3). search for minimal distance from vertex position to points in array. 4). pass that distance to fragment program. 5). clamp it's value. 6). multiple it with foam sampler and then add it to final color. 4,5,6 part are done. I think array is not optimized way yo do it but let's just keep it for now till desired result it achieved. does shader support dynamic array? can I pass a dynamic array to shader since collision point would vary? for testing purpose i have kept one value in an array of points ie. csvector3(0,0,0) . and i have checked that this value is visible in shader program. but i'm facing difficultly in finding the distance between this point and vertex position. it always takes distance from camera. any idea? -Naman Gupta ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ Crystal-develop mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/crystal-develop