Kaleidoscope 2D/3D Manual
Updates
1.05
- bugfix : triangle modification not saved if it was done by handles
1.04
- new feature : texture baking
- new feature : texture offset
1.03
- new feature : texture scroll
1.02
- fixed typo
1.01
- released
Sample Video
Features
- Simulates kaleidoscope with 3 mirrors via simple optical calculation
- 2D / 3D versions available
- Configurable
- Attenuation rate per reflection
- Layout of mirrors (vertices of the triangle constructed by mirrors)
- Source texture pattern
-- Also Nice with RenderTextures - Exporting as png image file( )
Store
How to Use
-2D
- Place KaleidoscopeQuad prefab on your scene
- Modify the shape of triangle by the position handle (consists of three-arrows)
- Replace the texture of the material
-3D
- Place Kaleidoscope3D prefab on your scene
- Modify the shape of triangle by the position handle
- Replace the texture of the material
APIs
Methods
SetTexture(Texture)
-Replaces the texture to sample from
ApplyTriangleToParam
-Updates material parameter by triangle modified in editor
-Used for applying dynamically modified properties
Properties
Reflectance
-Reflectance of mirrors (expecting value in range of [0.0 1.0])
-This value is multiplied on the sampled color at every reflection.
So the edge part of resulting material will be darker than center if reflectance is less than 1.0.
TextureScroll (ver 1.03 ~)
-Automatically scrolls the texture, changing simple pattern into complex animation.
TextureOffset (ver 1.04 ~)
-Similar to TextureScroll, but this doesn't cause automatic scroll.
-Better if you want to control the scroll speed dynamically.
OutputDirectory (ver 1.04 ~)
OutputFileNameBase
-For texture baking; defining the name and directory of created image file.