コード例 #1
0
 public AttributeAccessor GetAccessor(AttributeDescription desc) => vertexBuilder.GetAccessor(desc);
コード例 #2
0
ファイル: UVBuilder.cs プロジェクト: cg123/xenko
 /// <summary>
 /// Enhances or animates the texture coordinates using already existing base coordinates of (0, 0, 1, 1) or similar
 /// (base texture coordinates may differ depending on the actual shape)
 /// </summary>
 /// <param name="vertexBuilder">Target vertex buffer builder to use</param>
 /// <param name="sorter"><see cref="ParticleSorter"/> to use to iterate over all particles drawn this frame</param>
 /// <param name="texCoordsDescription">Attribute description of the texture coordinates in the current vertex layout</param>
 public abstract void BuildUVCoordinates(ParticleVertexBuilder vertexBuilder, ParticleSorter sorter, AttributeDescription texCoordsDescription);
コード例 #3
0
 /// <summary>
 /// Enhances or animates the texture coordinates using already existing base coordinates of (0, 0, 1, 1) or similar
 /// (base texture coordinates may differ depending on the actual shape)
 /// </summary>
 /// <param name="bufferState">The particle buffer state which is used to build the assigned vertex buffer</param>
 /// <param name="sorter"><see cref="ParticleSorter"/> to use to iterate over all particles drawn this frame</param>
 /// <param name="texCoordsDescription">Attribute description of the texture coordinates in the current vertex layout</param>
 public abstract void BuildUVCoordinates(ref ParticleBufferState bufferState, ref ParticleList sorter, AttributeDescription texCoordsDescription);