Преглед изворни кода

Document `Image.FORMAT_R8` stores in alpha channel instead in GLES2

Hugo Locurcio пре 3 година
родитељ
комит
059ba23f72
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      doc/classes/Image.xml

+ 1 - 0
doc/classes/Image.xml

@@ -434,6 +434,7 @@
 		</constant>
 		</constant>
 		<constant name="FORMAT_R8" value="2" enum="Format">
 		<constant name="FORMAT_R8" value="2" enum="Format">
 			OpenGL texture format [code]RED[/code] with a single component and a bitdepth of 8.
 			OpenGL texture format [code]RED[/code] with a single component and a bitdepth of 8.
+			[b]Note:[/b] When using the GLES2 backend, this uses the alpha channel instead of the red channel for storage.
 		</constant>
 		</constant>
 		<constant name="FORMAT_RG8" value="3" enum="Format">
 		<constant name="FORMAT_RG8" value="3" enum="Format">
 			OpenGL texture format [code]RG[/code] with two components and a bitdepth of 8 for each.
 			OpenGL texture format [code]RG[/code] with two components and a bitdepth of 8 for each.