- Home /
User opened additional question related to the same problem, as this problem is unrelated to shaders.
How to create a shader or a js for realtime glass(such as call of duty)?)
How can I crate a shader or a javascript for the glass so that when a bullet hits it it destroyes himself in more glass pieces??
if you have FPS example you can see when barrels are destroyed, a new dead-barrel is created.
so just like that. 2 objects. and create event when first object dies he spawns new object. shattered glass can also be created with particle emitter.
i know this isn't real answer but just to point you in some direction.
yes, u're right, but in this manner I have to instantiate a "glass destroyed" prefab, but if the object collides with it, it can't go trough it.
Follow this Question
Related Questions
Glass Refraction Shader 2 Answers
Raycasting in script suddenly stopped working 1 Answer
Setting Scroll View Width GUILayout 1 Answer
Stained glass material settings? 0 Answers
Reflective/refractive 2D material, like static water. 0 Answers