Ich als HoppyMapPfuscher® würde mich extremst freuen wenn es endlich möglich wäre mehr wie 4 Bodentexturen pro 'Kachel' verwenden zu können ... das wären dann zB statt 2Bits 3Bits von einem Register ... man könnte zB aus uint16_t eine uint32_t machen, gibt gleich 16Bit mehr und hier geht es nicht um einen 8Bit-uC wo man jedes Byte Arbeitsspeicher sparen muss ... einfach mal so hypothetisch, ohne jetzt den Code zu kennen .... ich bin aber voll Pessimist und weiss dasss da wieder nur 4 versch. Bodentexturen möglich sein werden
Das ganze mit den Bodentexturen läuft über den terrainShader. Mehr als 4 Layer pro quad währen theoretisch jetzt schon möglich. In wiefern die Engine das aber wieder unterstützt ist die Andere Frage.
code
<CodeInjection position="POST_SET_TEXCOORDS_VS">
<![CDATA[
float4 inPos = float4(In.position);
//float2 tmpPosXZ = (In.position.xz*32767.0*terrainSizeInvSizeScaleXZScaleY.y + 0.5 * terrainSizeInvSizeScaleXZScaleY.yy
//float2 terrainTexCoords = tmpPosXZ * terrainSizeInvSizeScaleXZScaleY.y;
float2 terrainTexCoords = inPos.xz * terrainSizeInvSizeScaleXZScaleY.y;
Out.defaultTexCoords = terrainTexCoords.xy;
Out.normalMapTexCoords = terrainTexCoords.xy + 0.5 * terrainSizeInvSizeScaleXZScaleY.yy;
#if NUM_DETAIL_LAYERS > 0
Out.terrainLayer0TexCoords = terrainTexCoords.xy * terrainLayerRepeat[0];
#endif
#if NUM_DETAIL_LAYERS > 1
Out.terrainLayer1TexCoords = terrainTexCoords.xy * terrainLayerRepeat[1];
#endif
#if NUM_DETAIL_LAYERS > 2
Out.terrainLayer2TexCoords = terrainTexCoords.xy * terrainLayerRepeat[2];
#endif
#if NUM_DETAIL_LAYERS > 3
Out.terrainLayer3TexCoords = terrainTexCoords.xy * terrainLayerRepeat[3];
#endif
#if NUM_DETAIL_LAYERS > 0
Out.terrainBlendWeightsTexCoords = ((inPos.xz - terrainStartXZScaleXZ.xy) * terrainPatchScale - 0.5) * terrainStartXZScaleXZ.zw + 0.5;
#endif
]]>
</CodeInjection>
Alles anzeigen
Hier sieht man das mit den Layern u.A hab da auch schon mal dran gepfuscht aber außer Shader errors und Giants-Engine funktioniert nicht mehr ... kam nichts bei raus.
Wie gesagt ich erwarte gar nichts dann werde ich nicht enttäuscht ![]()

ich hoffe bei dir ist besser wetter als hier