App Hub

코드 샘플 세부 정보

Description:

This sample shows how you can apply an effect on any model in your game to shatter it apart. The effect is simulated with a vertex shader.


Sample Overview

The shatter effect operates on every triangle in the model independently. For every triangle in the model, the vertex shader rotates the vertices of the triangle around the x, y, and z axes by random velocities. At the same time, the triangle is translated along its normal. This creates the appearance of the entire model shattering outwards into small pieces. To get this effect to work properly, the model must be processed beforehand with a custom processor that derives from ModelProcessor.



All content and source code downloaded from this page are bound to the Microsoft Permissive License (Ms-PL).


다운로드

프레임워크

GS 4.0

프레임워크

GS 3.1

교육 콘텐츠 찾기
var gDomain='m.webtrends.com'; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/
DCSIMG