Changeset View
Changeset View
Standalone View
Standalone View
source/blender/gpu/GPU_material.h
| Show First 20 Lines • Show All 153 Lines • ▼ Show 20 Lines | |||||
| /* Exported shading */ | /* Exported shading */ | ||||
| typedef struct GPUShadeInput { | typedef struct GPUShadeInput { | ||||
| GPUMaterial *gpumat; | GPUMaterial *gpumat; | ||||
| struct Material *mat; | struct Material *mat; | ||||
| GPUNodeLink *rgb, *specrgb, *vn, *view, *vcol, *ref; | GPUNodeLink *rgb, *specrgb, *vn, *view, *vcol, *ref; | ||||
| GPUNodeLink *alpha, *refl, *spec, *emit, *har, *amb; | GPUNodeLink *alpha, *refl, *spec, *emit, *har, *amb; | ||||
| GPUNodeLink *spectra; | |||||
| } GPUShadeInput; | } GPUShadeInput; | ||||
| typedef struct GPUShadeResult { | typedef struct GPUShadeResult { | ||||
| GPUNodeLink *diff, *spec, *combined, *alpha; | GPUNodeLink *diff, *spec, *combined, *alpha; | ||||
| } GPUShadeResult; | } GPUShadeResult; | ||||
| void GPU_shadeinput_set(GPUMaterial *mat, struct Material *ma, GPUShadeInput *shi); | void GPU_shadeinput_set(GPUMaterial *mat, struct Material *ma, GPUShadeInput *shi); | ||||
| void GPU_shaderesult_set(GPUShadeInput *shi, GPUShadeResult *shr); | void GPU_shaderesult_set(GPUShadeInput *shi, GPUShadeResult *shr); | ||||
| ▲ Show 20 Lines • Show All 98 Lines • Show Last 20 Lines | |||||