EEVEE Next: Subsurface Scattering #107407
|
@ -31,7 +31,7 @@ void SubsurfaceModule::end_sync()
|
|||
data_.sample_len = 55;
|
||||
}
|
||||
|
||||
if (!transmittance_tx.is_valid()) {
|
||||
if (!transmittance_tx_.is_valid()) {
|
||||
precompute_transmittance_profile();
|
||||
}
|
||||
|
||||
|
@ -105,7 +105,7 @@ void SubsurfaceModule::precompute_transmittance_profile()
|
|||
profile.first() = 1;
|
||||
profile.last() = 0;
|
||||
|
||||
transmittance_tx.ensure_1d(
|
||||
transmittance_tx_.ensure_1d(
|
||||
GPU_R16F, profile.size(), GPU_TEXTURE_USAGE_SHADER_READ, profile.data());
|
||||
}
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ struct SubsurfaceModule {
|
|||
/** Contains samples locations. */
|
||||
SubsurfaceDataBuf data_;
|
||||
/** Contains translucence profile for a single color channel. */
|
||||
Texture transmittance_tx;
|
||||
Texture transmittance_tx_;
|
||||
|
||||
public:
|
||||
SubsurfaceModule(Instance &inst) : inst_(inst)
|
||||
|
@ -56,7 +56,7 @@ struct SubsurfaceModule {
|
|||
|
||||
GPUTexture **transmittance_tx_get(void)
|
||||
{
|
||||
return &transmittance_tx;
|
||||
return &transmittance_tx_;
|
||||
}
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in New Issue