mirror of
https://github.com/MihailRis/voxelcore.git
synced 2026-10-11 05:51:51 +00:00
Merge branch 'main' into release-0.32
This commit is contained in:
commit
5b1f0661cc
23 changed files with 494 additions and 24 deletions
|
|
@ -86,6 +86,16 @@ For the `texture` directive, it is simpler. Example:
|
|||
> Here, `entities/tireman` is the name of the texture atlas containing `face_*` textures.
|
||||
> The texture does not necessarily have to be in an atlas.
|
||||
|
||||
If you do not wish to limit the animation duration via `configure` but want to loop the keyframe animation for a specific line, you can use the `period` parameter to specify the animation's repetition period in frames. Example:
|
||||
|
||||
```vcd
|
||||
@move by y curve linear period 24 {
|
||||
@key frame 0 value 0
|
||||
@key frame 12 value 1
|
||||
@key frame 24 value 0
|
||||
}
|
||||
```
|
||||
|
||||
## Expression curves
|
||||
|
||||
The attribute describes a function `f(t) = x`, where t is time in seconds.
|
||||
|
|
|
|||
|
|
@ -42,6 +42,7 @@ This primitive describes a triangle.
|
|||
- `region-scale` - multiplier vector for the UV region. Example: `region-scale (0.5,1)`
|
||||
- `shading` - determines whether shading is enabled on the primitive. Example: `shading off`
|
||||
- `normal` - overrides normal vector. Example: `normal (0,1,0)`
|
||||
- `cull-face` - determines which side will be culled. Example: `cull-face front` or `cull-face off` (disables face culling)
|
||||
|
||||
By default, texture coordinates are not affected by shape or size, unlike other primitives.
|
||||
|
||||
|
|
@ -58,6 +59,7 @@ This primitive describes a parallelogram using the right and up vectors.
|
|||
- `shading` - determines whether shading is enabled on the primitive. Example: `shading off`
|
||||
- `flip` - flips the UV region horizontally or vertically. Example: `flip v`
|
||||
- `normal` - overrides normal vector. Example: `normal (0,1,0)`
|
||||
- `cull-face` - determines which side will be culled. Example: `cull-face front` or `cull-face off` (disables face culling)
|
||||
|
||||
### `box` Properties
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue