Ejemplo n.º 1
0
        /// <inheritdoc/>
        protected override void InitializeCore()
        {
            base.InitializeCore();

            renderEffectKey = ((RootEffectRenderFeature)RootRenderFeature).RenderEffectKey;

            fog      = ((RootEffectRenderFeature)RootRenderFeature).CreateDrawCBufferOffsetSlot(FogEffectKeys.FogColor.Name);
            bend     = ((RootEffectRenderFeature)RootRenderFeature).CreateDrawCBufferOffsetSlot(TransformationBendWorldKeys.DeformFactorX.Name);
            uvChange = ((RootEffectRenderFeature)RootRenderFeature).CreateDrawCBufferOffsetSlot(TransformationTextureUVKeys.TextureRegion.Name);
        }
Ejemplo n.º 2
0
        /// <inheritdoc/>
        protected override void InitializeCore()
        {
            base.InitializeCore();

            renderEffectKey = RenderEffectKey;

            view = CreateViewCBufferOffsetSlot(ParticleBaseKeys.MatrixTransform.Name);

            perMaterialDescriptorSetSlot = GetOrCreateEffectDescriptorSetSlot("PerMaterial");
        }
Ejemplo n.º 3
0
        /// <inheritdoc/>
        protected override void InitializeCore()
        {
            base.InitializeCore();

            perLightingDescriptorSetSlot = GetOrCreateEffectDescriptorSetSlot("PerLighting");
            matrixTransform = CreateDrawCBufferOffsetSlot(SpriteBaseKeys.MatrixTransform.Name);

            transformRenderFeature.AttachRootRenderFeature(this);
            transformRenderFeature.Initialize(Context);
        }
        /// <inheritdoc/>
        protected override void InitializeCore()
        {
            base.InitializeCore();

            perLightingDescriptorSetSlot = GetOrCreateEffectDescriptorSetSlot("PerLighting");
            matrixTransform = CreateDrawCBufferOffsetSlot(SpriteBaseKeys.MatrixTransform.Name);

            transformRenderFeature.AttachRootRenderFeature(this);
            transformRenderFeature.Initialize(Context);
        }
        /// <inheritdoc/>
        protected override void InitializeCore()
        {
            base.InitializeCore();

            renderEffectKey = RenderEffectKey;

            // The offset starts with the first element in the buffer
            perViewCBufferOffset = CreateViewCBufferOffsetSlot(ParticleUtilitiesKeys.ViewMatrix.Name);

            perMaterialDescriptorSetSlot = GetOrCreateEffectDescriptorSetSlot("PerMaterial");
        }
Ejemplo n.º 6
0
        protected override void InitializeCore()
        {
            _objectInfoPropertyKey = RootRenderFeature.RenderData.CreateObjectKey <ObjectInfoData>();
            _objectInfoDataBuffer  = ((RootEffectRenderFeature)RootRenderFeature).CreateDrawCBufferOffsetSlot(ObjectInfoOutputShaderKeys.ObjectInfo.Name);

            // Note that I am unsure why we need to create our own BlendMatrixArray key rather than
            // reuse TransformationSkinningKeys.BlendMatrixArray.
            // When I tried to reuse TransformationSkinningKeys.BlendMatrixArray, the skinned model had graphical glitches,
            // but creating our own key does not have this issue.
            _blendMatricesPropertyKey = RootRenderFeature.RenderData.CreateObjectKey <Matrix[]>();
            _blendMatricesDataBuffer  = ((RootEffectRenderFeature)RootRenderFeature).CreateDrawCBufferOffsetSlot(OioTransformationSkinningKeys.BlendMatrixArray.Name);
        }
Ejemplo n.º 7
0
        /// <inheritdoc/>
        protected override void InitializeCore()
        {
            perDrawData = ((RootEffectRenderFeature)RootRenderFeature).CreateDrawCBufferOffsetSlot(MaterialFrontBackBlendShaderKeys.ColorFront.Name);

            renderEffectKey = ((RootEffectRenderFeature)RootRenderFeature).RenderEffectKey;
        }
Ejemplo n.º 8
0
 /// <inheritdoc/>
 protected override void InitializeCore()
 {
     base.InitializeCore();
     materialIndexConstantBufferOffsetReference = ((RootEffectRenderFeature)RootRenderFeature).CreateDrawCBufferOffsetSlot(GBufferOutputSubsurfaceScatteringMaterialIndexKeys.MaterialIndex.Name);
 }
Ejemplo n.º 9
0
        /// <inheritdoc/>
        protected override void InitializeCore()
        {
            renderModelObjectInfoKey = RootRenderFeature.RenderData.CreateObjectKey <Color4>();

            color = ((RootEffectRenderFeature)RootRenderFeature).CreateDrawCBufferOffsetSlot(HighlightShaderKeys.HighlightColor.Name);
        }
Ejemplo n.º 10
0
        /// <inheritdoc/>
        protected override void InitializeCore()
        {
            renderObjectInfoKey = RootRenderFeature.RenderData.CreateObjectKey <PickingObjectInfo>();

            pickingData = ((RootEffectRenderFeature)RootRenderFeature).CreateDrawCBufferOffsetSlot(PickingShaderKeys.PickingData.Name);
        }