Defold 1.2.118
This release includes a couple of fixes enabling better error handling in native extension builds and when hot-reloading shaders. We have also added launch image options to game.project for iPhone X and some that were previously missing.
Engine
-
DEF-2739
- Fixed: Better error handling when reloading invalid shaders. -
DEF-3035
- Fixed: 3D physics objects can now be spawned with a scale != 1. -
DEF-3026
- Fixed: Improved error/warning parsing from native extension compile logs. -
DEF-2993
- Fixed: Added missing launch images (iPhone X, iPhone 6 landscape).
Work in progress
Resource properties
We are working on a feature that will make it possible to add resources (textures, texturesets and materials) as script properties.
This together with the built in property texture0
, and some new properties for material
, textureset
and texture[1..7]
, this will make it possible to switch both texture, textureset and materials for renderable components at runtime.
Render Targets with texture resources
We are investigating a way to use texture resources as render target attachments. This means it will be possible to set a texture on a drawable component (sprite, model etc) in the editor, while using the same texture as color attachment for a render target. It will make it easier to create post processing passes without having to do a lot of manual setup in the render scripts. It will also be possible to get the sampler name (as specified in the material file) to texture property name (texture[0..7]
) for material resources, making it easier to set textures for their correct texture unit as expected by the material.
Particle stretch and particle orientation along movement direction
The idea for this feature came from a hack-day where the idea was to make it easier to create more advanced particle effects, such as sparks flying or a jet engine flame.
This resulted in two new features currently being implemented; an option to orient particles along the direction it is moving in, and adding a keyable particle property “stretch” where the stretch property can be set according to particle velocity (making it part of the simulation) or fully custom controlled with keys in the curve editor.