http://www.miikahweb.com/feed.php MiikaHweb - Blender Temp-angavrilov-material-uniforms Branch http://www.miikahweb.com/ MiikaHweb - Blender Temp-angavrilov-material-uniforms Branch fi Tue, 13 Apr 21 05:18:25 +0000 MiikaHweb RSS contact at miikahweb.com <![CDATA[[5f26309]: tweak attrs: fix UV attribute output type.]]> http://www.miikahweb.com/en/blender/git-logs/commit/5f26309e29eaecc5f91b3b6566bcf9a059baac4e 5f26309
Branches : temp-angavrilov-material-uniforms
Author : Alexander Gavrilov (angavrilov)
----------------------------------------
tweak attrs: fix UV attribute output type.

----------------------------------------
1 Path Changed]]>
Mon, 12 Oct 2020 19:03:44 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/5f26309e29eaecc5f91b3b6566bcf9a059baac4eAlexander Gavrilov
<![CDATA[[4ea9f42]: Materials: support the custom uniform attributes in Eevee.]]> http://www.miikahweb.com/en/blender/git-logs/commit/4ea9f4259c6247ef4956a17baa9a699d6dbaf5f3 4ea9f42
Branches : temp-angavrilov-material-uniforms
Author : Alexander Gavrilov (angavrilov)
----------------------------------------
Materials: support the custom uniform attributes in Eevee.

The attributes are provided to the shader via a UBO indexed with
resource_id, similar to the existing Object Info data. Unlike that,
however, it is necessary to maintain a separate buffer for every
requested combination of attributes.

This is done using a hash table with the attribute set as the key,
as it is not inconceivable that technically different materials may
use the same set of attributes. In addition, in order to minimize
wasted memory, a sparse UBO pool is implemented, so that chunks that
don't require that set of data don't have to allocate any memory.

Differential Revision: https://developer.blender.org/D2057

----------------------------------------
19 Paths Changed]]>
Mon, 12 Oct 2020 10:19:52 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/4ea9f4259c6247ef4956a17baa9a699d6dbaf5f3Alexander Gavrilov
<![CDATA[[b364be8]: Materials: add custom object properties as uniform attributes...]]> http://www.miikahweb.com/en/blender/git-logs/commit/b364be84a02d8a50175c31836783bc4e7791981d b364be8
Branches : temp-angavrilov-material-uniforms
Author : Alexander Gavrilov (angavrilov)
----------------------------------------
Materials: add custom object properties as uniform attributes.

This patch allows the user to type a property name into the
Attribute node, which will then output the value of the property
for each individual object, allowing to e.g. customize shaders
by object without duplicating the shader.

In order to make supporting this easier for Eevee, it is necessary
to explicitly choose whether the attribute is varying or uniform
via a dropdown option of the Attribute node. The Cycles design
seems to intend to treat all attributes equally, so the Blender
interface uses a name prefix that can't be entered with keyboard.

Differential Revision: https://developer.blender.org/D2057

----------------------------------------
13 Paths Changed]]>
Mon, 12 Oct 2020 10:19:52 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/b364be84a02d8a50175c31836783bc4e7791981dAlexander Gavrilov
<![CDATA[[ba30962]: Cycles: rename uchar4 attribute accessors from 'float4' to '...]]> http://www.miikahweb.com/en/blender/git-logs/commit/ba3096208ddf57414e159e39fbbed0aa7008dbfa ba30962
Branches : temp-angavrilov-material-uniforms
Author : Alexander Gavrilov (angavrilov)
----------------------------------------
Cycles: rename uchar4 attribute accessors from 'float4' to 'uchar4'.

----------------------------------------
6 Paths Changed]]>
Mon, 12 Oct 2020 10:19:52 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/ba3096208ddf57414e159e39fbbed0aa7008dbfaAlexander Gavrilov
<![CDATA[[f5ef2e2]: Materials: support true float4 attributes in the Attribute...]]> http://www.miikahweb.com/en/blender/git-logs/commit/f5ef2e27e094a8d997538064d96c379831910a2d f5ef2e2
Branches : temp-angavrilov-material-uniforms
Author : Alexander Gavrilov (angavrilov)
----------------------------------------
Materials: support true float4 attributes in the Attribute node.

Add a new Alpha socket to the Attribute node that outputs the
fourth component of the attribute. Currently the only such
attribute is vertex color, but there may be more in the future.
If the attribute has no alpha channel, the expected value is 1.

----------------------------------------
16 Paths Changed]]>
Mon, 12 Oct 2020 10:19:52 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/f5ef2e27e094a8d997538064d96c379831910a2dAlexander Gavrilov