Text Editor: Add GLSL support language #116793

Closed
Gangneron wants to merge 68 commits from Gangneron/blender:Add_GLSL into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.

68 Commits

Author SHA1 Message Date
Clément Foucault d23d73caf8 Fix non-ascii order (uppercase before lower case) 2024-02-25 21:20:58 +01:00
Clément Foucault 6f5e241f2b Add missing keywords 2024-02-25 21:17:06 +01:00
Clément Foucault f655131d58 Add missing uint keyword 2024-02-25 20:20:40 +01:00
Clément Foucault 757e0c3f65 Move sampler type to builtinfunc 2024-02-25 20:11:43 +01:00
Clément Foucault b3d0471c2f Move flow control to builtinfunc 2024-02-25 20:10:55 +01:00
Clément Foucault 35712a408a Move data types to builtin function array 2024-02-25 20:04:36 +01:00
Clément Foucault fe56a50599 Remove non existing keyword 2024-02-25 19:57:41 +01:00
Clément Foucault 543fdbc77f Add missing keywords 2024-02-25 19:51:29 +01:00
Clément Foucault 427bc00bf7 Remove non existing keywords or not available in core opengl profile 2024-02-25 19:51:20 +01:00
Clément Foucault e4fc4bed58 Sort the keyword arrays 2024-02-25 19:38:43 +01:00
Clément Foucault c50ab49b4d Fix true / false not being in reserved literals 2024-02-25 19:38:01 +01:00
Clément Foucault 246c57fa3a Put glsl builtins in specialvar array 2024-02-25 19:31:42 +01:00
Clément Foucault ef0372be2e Remove unneeded preprocessor literals 2024-02-25 19:28:13 +01:00
Clément Foucault db87f03ab5 Remove some unneeded clang format directives 2024-02-25 19:20:02 +01:00
Clément Foucault 95f7553080 Swap reserved literals and builtin functions 2024-02-25 19:15:21 +01:00
Clément Foucault 43cf8335dc Add comma in identifier lists 2024-02-25 19:12:28 +01:00
Clément Foucault 0d020fdd2c Make it compile 2024-02-25 19:11:08 +01:00
Clément Foucault 5ea84eba72 Merge branch 'main' into Add_GLSL
# Conflicts:
#	source/blender/editors/space_text/space_text.cc
2024-02-25 18:55:59 +01:00
Clément Foucault 0f4977077a Make format 2024-02-25 18:54:43 +01:00
Gangneron 2eb7c33258 Make format 2024-02-15 19:35:10 +01:00
Gangneron ec8cf2c8c1 cleanup and delete keys words 2024-02-15 19:34:04 +01:00
Gangneron fdd4c06b75 cleanup 2024-02-14 19:03:36 +01:00
Gangneron 98c10f2483 add some keywords 2024-02-11 16:19:50 +01:00
Gangneron a91b37edd4 delete file f the PR 2024-02-08 17:32:21 +01:00
Gangneron 220f315a4b cleanup 2024-01-27 19:04:31 +01:00
Gangneron 9ac768dfd3 Téléverser les fichiers vers "source/blender/editors/space_text" 2024-01-27 19:01:49 +01:00
Gangneron b558b139ab delete file f the PR 2024-01-18 22:39:20 +01:00
Gangneron dffec63646 cleanup 2024-01-18 22:35:14 +01:00
Gangneron de2c1b4b39 fix issue 2024-01-18 22:32:42 +01:00
Gangneron 1239b62e39 Téléverser les fichiers vers "source/blender/blenlib" 2024-01-18 19:30:29 +01:00
Gangneron 8a2600b856 Téléverser les fichiers vers "source/blender/editors/space_text" 2024-01-18 19:24:02 +01:00
Gangneron e3651e6119 cleanup 2024-01-18 12:29:32 +01:00
Gangneron aecb17a400 cleanup 2024-01-17 15:36:27 +01:00
Gangneron 4e8e726105 fix issue 2024-01-17 15:30:47 +01:00
Gangneron 2b6dd8bcae fix problem 2024-01-17 15:25:23 +01:00
Gangneron 33314a29ba correct issue 2024-01-17 15:03:52 +01:00
Gangneron 48af581653 test of create new function and cleanup file 2024-01-13 17:09:16 +01:00
Gangneron f72eddcf28 Merge_main 2024-01-13 16:55:30 +01:00
Gangneron 28218d9330 M 2024-01-13 16:53:59 +01:00
Gangneron c153c2e86b Merge_main 2024-01-13 16:52:52 +01:00
Gangneron 393f4ddb3a Merge_main 2024-01-13 16:52:01 +01:00
Gangneron c203fd7c07 Merge_main 2024-01-13 16:50:37 +01:00
Gangneron 1db9748d19 Merge_main 2024-01-13 16:40:03 +01:00
Gangneron e3efaa60b4 fix issue 2024-01-11 21:37:24 +01:00
Gangneron 9e709a581e fix 2024-01-11 20:19:07 +01:00
Gangneron b516c043c3 fix problem 2024-01-11 19:24:59 +01:00
Gangneron 2263d5b01a Fix multiple issue 2024-01-11 18:39:50 +01:00
Gangneron 2b7f04f280 fix fatal error 2024-01-11 18:34:11 +01:00
Gangneron 475d1ba10b fix issue 2024-01-10 18:42:31 +01:00
Gangneron f32b16aca8 fix issue 2024-01-10 18:28:28 +01:00
Gangneron ebfc6794ac fix syntaxe 2024-01-09 19:47:35 +01:00
Gangneron 54e2997431 fix problem 2024-01-09 19:29:52 +01:00
Gangneron d11adcd2e8 Fix issue 2024-01-09 14:34:34 +01:00
Gangneron 63b918d7a1 fix comment 2024-01-08 22:00:07 +01:00
Gangneron 85766eb5bb Fix incorrect name 2024-01-08 21:56:52 +01:00
Gangneron 65221705ec Cleanup File 2024-01-08 21:52:05 +01:00
Gangneron ef42f4fc02 Fix problem and cleanup 2024-01-08 21:47:48 +01:00
Gangneron ea3412dd22 Adding some keywords 2024-01-08 21:34:46 +01:00
Gangneron 601d38e12b Adding some keywords 2024-01-08 19:28:41 +01:00
Gangneron 07d7bf0bf2 Add "samplerBuffer" 2024-01-06 15:21:44 +01:00
Gangneron cd2504959e Add a lot of keywords
i add a lot of keyword of GLSL. For that i use GLSL  4.3 doc : https://docs.gl/sl4/all
2024-01-06 15:12:33 +01:00
Gangneron 3162c3f35f Big update
Add head, Add "uvec", "flat" and "in" update comment
2024-01-05 21:02:31 +01:00
Gangneron 57d33bb8c6 Add uvec
Add uvec2, uvec3 and uvec4 in list and "in"
2024-01-05 20:51:19 +01:00
Gangneron 21ef43f0e3 Add flat in list 2024-01-05 19:44:11 +01:00
Gangneron b58e0e9774 Add "in" in list 2024-01-05 19:10:51 +01:00
Gangneron 97065b396d fix duplicate code 2024-01-05 19:08:01 +01:00
Gangneron 0710a7cc89 Cleanup File 2024-01-05 15:19:30 +01:00
Gangneron bb9ba761c8 Text Editor: Add GLSL support language
Pr adds the Glsl language to the text editor.
The objective is to be able to create your own GLSL shaders in blender. This improves the workflow since all shader programming can be done directly in Blender. In addition, the GLSL language is a very popular language in the video games industry and even in general.
The goal is then to also support HSLS in the same way in order to have a complete solution with OSL, GLSL and HLSL
If there are any key words or other missing words, tell me
2024-01-04 17:18:02 +01:00