2012-05-31 20:26:36 +00:00
|
|
|
/*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Copyright 2011-2013 Blender Foundation
|
2012-05-31 20:26:36 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
2012-05-31 20:26:36 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2012-05-31 20:26:36 +00:00
|
|
|
*
|
2013-08-18 14:16:15 +00:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
2014-12-25 02:50:24 +01:00
|
|
|
* limitations under the License.
|
2012-05-31 20:26:36 +00:00
|
|
|
*/
|
2011-05-20 12:26:01 +00:00
|
|
|
|
|
|
|
#ifndef KERNEL_TEX
|
2017-10-06 21:47:41 +02:00
|
|
|
# define KERNEL_TEX(type, name)
|
2011-05-20 12:26:01 +00:00
|
|
|
#endif
|
|
|
|
|
|
|
|
/* bvh */
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(float4, __bvh_nodes)
|
|
|
|
KERNEL_TEX(float4, __bvh_leaf_nodes)
|
|
|
|
KERNEL_TEX(float4, __prim_tri_verts)
|
|
|
|
KERNEL_TEX(uint, __prim_tri_index)
|
|
|
|
KERNEL_TEX(uint, __prim_type)
|
|
|
|
KERNEL_TEX(uint, __prim_visibility)
|
|
|
|
KERNEL_TEX(uint, __prim_index)
|
|
|
|
KERNEL_TEX(uint, __prim_object)
|
|
|
|
KERNEL_TEX(uint, __object_node)
|
|
|
|
KERNEL_TEX(float2, __prim_time)
|
2011-05-20 12:26:01 +00:00
|
|
|
|
|
|
|
/* objects */
|
2018-03-07 22:19:56 +01:00
|
|
|
KERNEL_TEX(KernelObject, __objects)
|
2018-03-10 00:37:07 +01:00
|
|
|
KERNEL_TEX(Transform, __object_motion_pass)
|
2018-03-08 04:04:52 +01:00
|
|
|
KERNEL_TEX(DecomposedTransform, __object_motion)
|
2018-03-10 00:37:07 +01:00
|
|
|
KERNEL_TEX(uint, __object_flag)
|
2020-03-07 14:38:52 +01:00
|
|
|
KERNEL_TEX(float, __object_volume_step)
|
2011-05-20 12:26:01 +00:00
|
|
|
|
2018-03-10 01:36:09 +01:00
|
|
|
/* cameras */
|
|
|
|
KERNEL_TEX(DecomposedTransform, __camera_motion)
|
|
|
|
|
2011-05-20 12:26:01 +00:00
|
|
|
/* triangles */
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(uint, __tri_shader)
|
|
|
|
KERNEL_TEX(float4, __tri_vnormal)
|
|
|
|
KERNEL_TEX(uint4, __tri_vindex)
|
|
|
|
KERNEL_TEX(uint, __tri_patch)
|
|
|
|
KERNEL_TEX(float2, __tri_patch_uv)
|
2011-05-20 12:26:01 +00:00
|
|
|
|
2012-12-28 14:21:30 +00:00
|
|
|
/* curves */
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(float4, __curves)
|
|
|
|
KERNEL_TEX(float4, __curve_keys)
|
2012-12-28 14:21:30 +00:00
|
|
|
|
2016-07-16 19:42:28 -04:00
|
|
|
/* patches */
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(uint, __patches)
|
2016-07-16 19:42:28 -04:00
|
|
|
|
2011-05-20 12:26:01 +00:00
|
|
|
/* attributes */
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(uint4, __attributes_map)
|
|
|
|
KERNEL_TEX(float, __attributes_float)
|
2019-03-05 14:54:54 +01:00
|
|
|
KERNEL_TEX(float2, __attributes_float2)
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(float4, __attributes_float3)
|
|
|
|
KERNEL_TEX(uchar4, __attributes_uchar4)
|
2011-05-20 12:26:01 +00:00
|
|
|
|
|
|
|
/* lights */
|
2018-03-08 00:15:41 +01:00
|
|
|
KERNEL_TEX(KernelLightDistribution, __light_distribution)
|
|
|
|
KERNEL_TEX(KernelLight, __lights)
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(float2, __light_background_marginal_cdf)
|
|
|
|
KERNEL_TEX(float2, __light_background_conditional_cdf)
|
2011-05-20 12:26:01 +00:00
|
|
|
|
2012-06-08 16:17:57 +00:00
|
|
|
/* particles */
|
2018-03-08 00:35:24 +01:00
|
|
|
KERNEL_TEX(KernelParticle, __particles)
|
2012-06-08 16:17:57 +00:00
|
|
|
|
2011-05-20 12:26:01 +00:00
|
|
|
/* shaders */
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(uint4, __svm_nodes)
|
2018-03-08 00:35:24 +01:00
|
|
|
KERNEL_TEX(KernelShader, __shaders)
|
2011-05-20 12:26:01 +00:00
|
|
|
|
2013-04-01 20:26:43 +00:00
|
|
|
/* lookup tables */
|
2017-10-06 21:47:41 +02:00
|
|
|
KERNEL_TEX(float, __lookup_table)
|
2011-05-20 12:26:01 +00:00
|
|
|
|
|
|
|
/* sobol */
|
Cycles: merge of cycles-x branch, a major update to the renderer
This includes much improved GPU rendering performance, viewport interactivity,
new shadow catcher, revamped sampling settings, subsurface scattering anisotropy,
new GPU volume sampling, improved PMJ sampling pattern, and more.
Some features have also been removed or changed, breaking backwards compatibility.
Including the removal of the OpenCL backend, for which alternatives are under
development.
Release notes and code docs:
https://wiki.blender.org/wiki/Reference/Release_Notes/3.0/Cycles
https://wiki.blender.org/wiki/Source/Render/Cycles
Credits:
* Sergey Sharybin
* Brecht Van Lommel
* Patrick Mours (OptiX backend)
* Christophe Hery (subsurface scattering anisotropy)
* William Leeson (PMJ sampling pattern)
* Alaska (various fixes and tweaks)
* Thomas Dinges (various fixes)
For the full commit history, see the cycles-x branch. This squashes together
all the changes since intermediate changes would often fail building or tests.
Ref T87839, T87837, T87836
Fixes T90734, T89353, T80267, T80267, T77185, T69800
2021-09-20 17:59:20 +02:00
|
|
|
KERNEL_TEX(float, __sample_pattern_lut)
|
2011-05-20 12:26:01 +00:00
|
|
|
|
2017-10-06 21:47:41 +02:00
|
|
|
/* image textures */
|
|
|
|
KERNEL_TEX(TextureInfo, __texture_info)
|
2012-05-13 12:32:44 +00:00
|
|
|
|
Cycles: Add Support for IES files as textures for light strength
This patch adds support for IES files, a file format that is commonly used to store the directional intensity distribution of light sources.
The new IES node is supposed to be plugged into the Strength input of the Emission node of the lamp.
Since people generating IES files do not really seem to care about the standard, the parser is flexible enough to accept all test files I have tried.
Some common weirdnesses are distributing values over multiple lines that should go into one line, using commas instead of spaces as delimiters and adding various useless stuff at the end of the file.
The user interface of the node is similar to the script node, the user can either select an internal Text or load a file.
Internally, IES files are handled similar to Image textures: They are stored in slots by the LightManager and each unique IES is assigned to one slot.
The local coordinate system of the lamp is used, so that the direction of the light can be changed. For UI reasons, it's usually best to add an area light,
rotate it and then change its type, since especially the point light does not immediately show its local coordinate system in the viewport.
Reviewers: #cycles, dingto, sergey, brecht
Reviewed By: #cycles, dingto, brecht
Subscribers: OgDEV, crazyrobinhood, secundar, cardboard, pisuke, intrah, swerner, micah_denn, harvester, gottfried, disnel, campbellbarton, duarteframos, Lapineige, brecht, juicyfruit, dingto, marek, rickyblender, bliblubli, lockal, sergey
Differential Revision: https://developer.blender.org/D1543
2018-05-27 00:46:37 +02:00
|
|
|
/* ies lights */
|
|
|
|
KERNEL_TEX(float, __ies)
|
|
|
|
|
2011-05-20 12:26:01 +00:00
|
|
|
#undef KERNEL_TEX
|